How does a command find out who called it?
ken at kencorey.com
Wed Feb 1 15:41:53 CST 2012
On 01/02/2012 21:28, Ken Ray wrote:
> Really? Does it matter how long it takes the handler to complete execution? That is, if the rest of the handler after the "send" takes 10 seconds to execute, will LC wait all 10 seconds to get to the end of the handler before it sends the message?
> Just curious...
Completely depends on your code and the order in which the handler needs
Just as a (completely contrived) f'rinstance, what if the code looked
send "saveMe" to card id 1002
delete variable foo
put foo into URL "file:/tmp/saved.txt"
In that case, if you added the " in 0 milliseconds" you'd be out of
luck, as the variable "foo" would be gone. It wouldn't cause an error,
as saveMe would assume "foo" to be the local variable defined at the top
(or if it didn't exist it would be created (and empty)).
More information about the use-livecode