Getting text between text :o
If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
4 posts
Page 1 of 1
Lool, the title is weird ik 
Just asking how can i get the text like this:
If i had a textbox or richtextbox with this text
hope u understand my EnGlish xD idoit;

Just asking how can i get the text like this:
If i had a textbox or richtextbox with this text
Code: Select all
I want to get the "party!" text how i do it? i mean i wanna get any text inside the @!@ and @1@ < @!@Party!@!@

hope u understand my EnGlish xD idoit;
You can use this:
Code: Select all
Private Sub btnTest_Click(sender As System.Object, e As System.EventArgs) Handles btnTest.Click
Dim input As String = "@!@Party!@!@"
Dim separator As String = "@!@"
Dim starting As Integer = input.IndexOf(separator) + separator.Length
Dim finishing As Integer = input.LastIndexOf(separator) - separator.Length
Dim result As String = input.Substring(starting, finishing)
MsgBox(result)
End Sub
4 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023