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 information.

Just as a (completely contrived) f'rinstance, what if the code looked like this:



local foo

on finishUp
  send "saveMe" to card id 1002
  delete variable foo
end finishUp

on saveMe
  put foo into URL "file:/tmp/saved.txt"
end saveMe



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)).

-Ken

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to