Pending messages
Dar Scott
dsc at swcp.com
Thu Jun 17 18:40:10 EDT 2004
On Jun 17, 2004, at 3:44 PM, Troy Rollins wrote:
> If I have multiple scripts, calling the same handler, but with
> different parameters, this can be difficult to sort one from the next.
> Is the "typical" technique for this to catch the message ID when sent,
> then register that with a "manager object" which can keep track of all
> the messages and related parameters based on ID information? Now that
> I write this, I'm assuming it is. But I'm open to any suggestions or
> tips from anyone who does this regularly.
I usually get the message ID, but I do not use a general message ID
manager, I put it in a script local variable near the functions and
commands related to the message.
Some folks differentiate based on the target, which is can be obtained
from pendingMessages().
At my web site is a primer on what I call "message mechanics". It
covers some of these issues. Look here:
http://www.swcp.com/dsc/revstacks.html
This primer does not require you to build anything, but it does have
lots of examples.
Dar Scott
More information about the use-livecode
mailing list