indexof has an overload where you can specify the startIndex:
vb Code:
Dim teststr As String = "testtesttest" Dim startAt As Integer = 0 Do While teststr.IndexOf("test", startAt) <> -1 MsgBox(teststr.IndexOf("test", startAt)) startAt = teststr.IndexOf("test", startAt) + 4 Loop




Reply With Quote