Welcome! Log In Create A New Profile

Advanced

Searching A Text String

Posted by Milton 
Milton
Searching A Text String
August 09, 2008 10:45PM
Hi All,

I know I have done this before but cannot remember how - I want to find a match for an object in a text string. For example, I want to see if the word "DOG" exists in the string "THE BROWN DOG WAS ASLEEP".

Thanks in advance,

Milton

Peter Raines
Re: Searching A Text String
August 09, 2008 11:56PM
If Position("THE BROWN DOG WAS ASLEEP", "DOG") = 0 Then
//Not Found
Info("Oh where, oh where has my little dog gone!")
Else
//Found
Info("There you are!")
End
Milton
Re: Searching A Text String
August 10, 2008 12:36AM
Thanks Peter - exactly what I needed.

Milton
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: