|
-
Jun 29th, 2000, 08:41 AM
#1
Thread Starter
Hyperactive Member
Can someone explain how to use it?
-
Jun 29th, 2000, 09:02 AM
#2
Fanatic Member
It's pretty simple.
Code:
SourceString = "Hello|How|Are|You"
Delimiter = "|"
StringArray = Split(SourceString, Delimiter)
For i = 0 to Ubound(StringArray - 1)
MsgBox StringArray(i)
Next
Put this code into any procedure and run it. StringArray(0) will be "Hello". StringArray(1) will be "How", and so on.
www.RealisticGraphics.net
Running VS.Net Enterprise & VB 6
Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML
MSN Messenger: kmsheff
-
Jun 29th, 2000, 09:05 AM
#3
Code:
Dim i As Long
Dim MyArray() As String
Dim MyData As String
MyData = "hello:dude:you:are:cool"
MyArray() = Split(MyData, ":")
For i = 0 To 5
MsgBox MyArray(i)
Next
I hope this helps
-
Jun 29th, 2000, 09:27 AM
#4
transcendental analytic
Code:
for each n in split("another cool sample you must test"," ")
msgbox n
next n
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jun 29th, 2000, 09:34 AM
#5
Thread Starter
Hyperactive Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|