i would make a list of the possible words.
then in check art make a loop in the list looking at the content

in really quicky lingo:
list= ["g44", "p51", "etc", "etc"]
x = the amount of words in list,
repeat x until its 1
member("text_articles").text contains  list[x]
x = x -1
if match do this and exit the repeat
otherwize
do something else

fabrice

Tony �str�m wrote:

> Hi list
>
> I use this lingo to detect if  field contains a specify text and if so
> then alert.
> on checkArt
>   if member("text_articles").text contains "G44" and
> sprite(21).member.name = "p44b" then
>     if gLang = "eng" then
>       alert "OOPS!"
>     end if
>   end if
> end
>
> I want to do this (if the "text articles" are more then one specified
> word) but how !!
> on checkArt
>   if member("text_articles").text contains "G44", "H55", "I66" and
> sprite(21).member.name = "p44b", "p55b", "p66b" then
>     if gLang = "eng" then
>       alert "OOPS!"
>     end if
>   end if
> end
>
> Can somebody lead me in the right direction?
>
> PS. This is af field member . DS
>
> TIA
> Tony
>
> [To remove yourself from this list, or to change to digest mode, go to 
>http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
>[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
>learning and helping with programming Lingo.  Thanks!]

--
Zuidzijde reclamebureau
http://www.zuidzijde.nl

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to