Results 1 to 4 of 4

Thread: Split Command?

  1. #1

    Thread Starter
    Addicted Member Smie's Avatar
    Join Date
    Jun 1999
    Location
    Columbus, OH
    Posts
    249

    Question

    it seemed to have slipped my mind, anyone know the split command? thanks!

  2. #2
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    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]

  3. #3
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    258
    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 !!!!!

  4. #4
    Guest
    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
  •  



Click Here to Expand Forum to Full Width