VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Use Function Split in VB6

by Yuening Dai (30 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 9th January 1999
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Use Function Split in VB6

Rate Use Function Split in VB6



'see the result.
'See VB help for more detailed info.
'
Private Sub cmdSplit_Click()
  '
  Dim saTest() As String
  Dim sToBeShown As String
  Dim I As Integer
  '
  '
  If InStr(1, txtTest.Text, " ") = 0 Then
    MsgBox "Type a string with space(s) in it, and try again!"
  End If
  '
  saTest = Split(txtTest.Text, " ", -1, vbTextCompare)
  '
  For I = 0 To UBound(saTest)
    sToBeShown = sToBeShown & saTest(I)
  Next I
  '
  txtTest.Text = sToBeShown
  '
End Sub

Download this snippet    Add to My Saved Code

Use Function Split in VB6 Comments

No comments have been posted about Use Function Split in VB6. Why not be the first to post a comment about Use Function Split in VB6.

Post your comment

Subject:
Message:
0/1000 characters