sirimit
asked on
What simple function for find word in my string ? Thank you.
What simple function for find word in my string ?
Ex. Dim tmpString As String = "View sample of a well-asked Question"
I want to check "sample" into variable tmpString is return true. I want simple function. Thank you.
ps. vb style thank.
Ex. Dim tmpString As String = "View sample of a well-asked Question"
I want to check "sample" into variable tmpString is return true. I want simple function. Thank you.
ps. vb style thank.
If tmpString.IndexOf("Sample" ,1)>0 then
msgbox "String Exist..!"
else
msgbox "not present..!!"
end if
msgbox "String Exist..!"
else
msgbox "not present..!!"
end if
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Call:
dim myBool as boolean
myBool = CheckField(tmpString, "sample")
Open in new window