Hello everybody...
I have for example this text:
User:text Something xxx
And I want to program seperate only word "text"
So, word after colon and before first space.
I'm interested in code, thanks!
Printable View
Hello everybody...
I have for example this text:
User:text Something xxx
And I want to program seperate only word "text"
So, word after colon and before first space.
I'm interested in code, thanks!
Show us what you have done so far.
I had not done anything about it so far.
try this:
Code:Dim txb As String = TextBox1.Text
txb = txb.Substring(txb.IndexOf(":") + 1, txb.IndexOf(" ") - txb.IndexOf(":"))
You really should try and ask a question based on the code you have. For simple things like this it is not such a big deal, but if you have bigger problems...
Code:Dim foo As String = "User:text Something xxx"
Dim splitColon() As String = foo.Split(New Char() {":"c})
Dim splitSpace() As String = splitColon(1).Split(New Char() {" "c})
Debug.WriteLine(splitSpace(0))