Re: How to stay on a card when repeating a « find »

J. Landman Gay jacque at hyperactivesw.com
Fri Feb 10 11:58:58 EST 2006


André.Bisseret wrote:

 > Actually, it's the contrary : as a regular state, only few cards (the 4
 > first ones in the stack) must remain non searchable ; while all the
 > others must remain searchable.

If your current way is working then it is fine to keep it. But just to 
be complete for anyone who is following this, you could also do this:

on preOpenCard
   if the number of this cd > 4
   then set the dontsearch of this cd to false
end preOpencard

on closeCard
   set the dontsearch of this cd to true
end closeCard

This would be the fastest way to do what you want. Before you run these 
scripts, make sure you have set all the cards to dontsearch. The above 
handlers just make the current card searchable, unless it is one of the 
first four.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list