UI component openCard/preOpenCard
alex at tweedly.net
Thu Jul 15 12:20:08 CDT 2004
At 09:36 15/07/2004 -0700, Rob Cozens wrote:
>>> How might these components receive these calls?
>>The preOpenCard & openCard messages are sent to the card;
>In card or higher script:
> get the number of controls of the target
> repeat with x = 1 to it
> send "preOpenCard" to control it
> end repeat
>Note that each control MUST contain a preOpenCard handler or the message
>will be passed up to the card...and processing should loop until RAM is
Couldn't you check that for a loop ?
if target is not me then exit preOpenCard - in case any control failed
to have a handler
get the number of controls of the target
repeat with x = 1 to it
send "preOpenCard" to control x
>A better solution would be to pass the controls a different message, eg:
>cardPreOpen, rather than using system messages usually targeted to higher
That would be better.
-------------- next part --------------
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004
More information about the use-livecode