VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Parse a string

by Joe Anzalone (3 Submissions)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 5th March 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Parse a string

Rate Parse a string



    String1 = "John User"
    strPos = InStr(String1, " ")
    One = Mid(String1, 1, strPos - 1)
    Two = Mid(String1, strPos + 1)
    MsgBox One
    MsgBox Two
End Sub

Download this snippet    Add to My Saved Code

Parse a string Comments

No comments have been posted about Parse a string. Why not be the first to post a comment about Parse a string.

Post your comment

Subject:
Message:
0/1000 characters