Pending messages

Troy Rollins troy at rpsystems.net
Thu Jun 17 17:44:52 EDT 2004


Sort of the part 2 of my issues with "send"...

When "send in time" is used, the PendingMessages stores all the current 
messages waiting to be sent. However, if those messages have 
parameters, you don't seem to be able to access those when reviewing 
the PendingMessages, either with your own code, or with the message 
box's "pending messages" panel.

in other words, sending

"myHandler first param, second param" (Which seems like a pretty sloppy 
syntax, BTW.)

shows up as "myHandler" in the pending message list.

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.
--
Troy
RPSystems, Ltd.
http://www.rpsystems.net



More information about the use-livecode mailing list