Thursday, March 12, 2009

Check for a text in a string

Dim find As String = "Ted"
Dim strg As String = "My name is Ted Unnikumaran"
If InStr(obj, find) = 1 Then
MsgBox("found it")
Else
MsgBox("not found")
End If

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.