|
-
Aug 17th, 2000, 10:35 AM
#1
Thread Starter
Addicted Member
it seemed to have slipped my mind, anyone know the split command? thanks!
-
Aug 17th, 2000, 10:44 AM
#2
Fanatic Member
see vb help (MSDN), but it basicly splits a string into an array based on a delimiter (like a space)
GWDASH
[b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]
-
Aug 17th, 2000, 10:57 AM
#3
Hyperactive Member
Data = this:string
Commandx = Split(data, ":")(0)
msgbox commandx
commandx = "this"
did that make sense?
Visual Basic 6 SP4 on win98se
QUIT THE RAT RACE BECAUSE YOUR MESSING THE WORLD UP !!!!!
-
Aug 17th, 2000, 11:02 AM
#4
Code:
sMyString = "One,Two,Three"
'Split the string into an Array whenever a comma is found
sArray = Split(sMyString, ",")
'Loop through the array and display the result
For I = LBound(sArray) To UBound(sArray)
Print sArray(I)
Next I
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
|