At 10:44 AM -0700 7/28/2001, [EMAIL PROTECTED] wrote:
>I am attempting to create a button that will search all the fields in a stack
>for a certain word or phrase and also find the next occurance each time you
>hit enter-can someone help me with a script.

Here's a basic one:

on mouseUp -- might go in a "Find" button
  ask "Find what?"
  if it is not empty then find it
end mouseUp

on enterKey -- can go into the stack script
  if the foundChunk is not empty then find the foundText
  -- checks whether there's a "found rectangle" - if there is, re-finds
  -- the found text
end enterKey

--
Jeanne A. E. DeVoto ~ [EMAIL PROTECTED]
http://www.runrev.com/
Runtime Revolution Limited - Power to the Developer!


Reply via email to