Is it just an old inheritage from vb6 or is it still the right way to do it? Is there another way?
Printable View
Is it just an old inheritage from vb6 or is it still the right way to do it? Is there another way?
take a look at the IndexOf property. eg:
VB Code:
Dim strString As String = "some text with a \ in" Dim x As Integer = strString.IndexOf("\") MessageBox.Show("the \ is located at ... " & x)