I’ve got a text box which works as a console (in a form application).
I’d like to run a certain sub when the user types in:
broadcast blabla
the sub would broadcast the string blabla.
How would the program recognize ONLY the first word?
Would something like this work?
If ConsoleInput.Text = "broadcast " & command Then
BroadcastMessage(command)
End If
You can use
String.Split:Edit: If you want to broadcast all words it might be better to use
String.Substring: