VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



String parsing. Good if you're making a program like command prompt which uses command input.

by Frigolit Software (1 Submission)
Category: String Manipulation
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Mon 17th March 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)

String parsing. Good if you're making a program like command prompt which uses command input.

API Declarations


Start with "Sub Main"

Rate String parsing. Good if you're making a program like command prompt which uses command input.




Sub Main()
    TheString = "message Hello!"
    ParseText TheString
    ParseText "appcmd quit"
End Sub

Sub ParseText(Text As String)
    Parse = Split(Text, " ")
    If Parse(0) = "message" Then
        MsgBox Parse(1)
    End If
    If Parse(0) = "appcmd" Then
        If Parse(1) = "quit" Then MsgBox "End of program...": End
    End If
End Sub


Download this snippet    Add to My Saved Code

String parsing. Good if you're making a program like command prompt which uses command input. Comments

No comments have been posted about String parsing. Good if you're making a program like command prompt which uses command input.. Why not be the first to post a comment about String parsing. Good if you're making a program like command prompt which uses command input..

Post your comment

Subject:
Message:
0/1000 characters