Results 1 to 2 of 2

Thread: Explode a string VB 6.0 (Resolved)

  1. #1

    Thread Starter
    Addicted Member señorbadger's Avatar
    Join Date
    Oct 2003
    Location
    Mud pools of wellingborough
    Posts
    193

    Explode a string VB 6.0 (Resolved)

    Hi how can i explode a string value down to its single characters in VB 6.0 ??
    Last edited by señorbadger; Nov 30th, 2003 at 03:37 PM.

  2. #2
    Member
    Join Date
    Jun 2002
    Location
    India
    Posts
    40
    Hi,

    Try the following code:

    <vbcode>

    Dim i as Integer, x as String

    For i = 1 to len(YourStringVariable)
    x = mid(YourStringVariable,i,1)

    'Put your code here where x is the splitted string...

    Next i

    </vbcode>

    I hope this helps.

    Bye & regards,
    Ravi.

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