More send in time

J. Landman Gay jacque at hyperactivesw.com
Mon Jun 30 23:46:00 EDT 2003


On 6/30/03 11:02 PM, curry wrote:

> While learning more about "send in" scripts, here's a general 
> suggestion, not for every situation where "send in" is used, but 
> something that can be useful:
> 
> Unlike the good old "idle" message, you have to make sure that your 
> custom handler doesn't fire and cause an error when the user has moved 
> to a new card and the script tries to do something or refer to something 
> that isn't there any more.
> 
> You can handle these with variables if needed, such as an action that 
> has a definite beginning and end, but for more general cases where it 
> needs to do something until leaving the card, I find it handy to 
> reference the name of the card:
> 
> on doThis
>   if the name of this card is "thiscard" then
>     ...
>     send doThis to me in .5 sec
>   end if
> end doThis

Good point. Another way to handle this is to just cancel the messages on 
closeCard.

(I appear to have exceeded my blabbermouth quotient today. Shutting up 
now...)

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




More information about the use-livecode mailing list