Search for text

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a string 'str_sometext'. I want to search if the string contains the
text 'building'. I'm not sure what function I should be using to do this.
Can anyone help?

Thanks,
T
 
Try function InStr(), something like:
InStr(1, "str_sometext", "building")
The first argument (integer) tells the function to start looking from
the first character in "str_sometext". If "building" is indeed found in
"str_sometext" the function returns the position where it starts,
otherwise it returns 0.

HTH,
Nikos
 
Back
Top