> the ringing silence about my last post tells me that maybe I 
> failed to make myself clear .

I think it's more a matter of asking too broad a question.

> how do I instruct Director to go through 
> *all* the members of a given cast and compares them with the
searchWord 
> text. 

Ok, this will get you started. This is untested Lingo code, but, if you
have programming talent, you can take it and run with it.

repeat with i = 1 to the number of members of castlib 1
  if (member(i).type = #text) or (member(i).type = #field) then
    if offset(searchWord, member(i).text) > 0 then
      -- you found a search word
    end if
  end if
end repeat

I use offset instead of contains because it's faster.

Additional ideas: you can search through all casts using nested loops.
You can store your results in a list (rtfm) in case there is more than
one occurrence.

Hope that helps.

Cordially,

Kerry Thompson


[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