> On 26 Oct. 2016, at 6:55 am, Dr. Hawkins <[email protected]> wrote:
>
> *unless* there is an opportunity to execute it, such as (exclusively?)
> "Wait with messages", at which point the message due is supposed to be
> checked.
>
> send in time is supposed to return a message queue id of the message,
> meaning it's already supposed to, well, be in the queue
Send in time has does not guarantee when a message will be sent. It’s ASAP
after the event time. If there is a pending message that should be handled
before the message you sent then it will be handled and then you will run out
of time because you are only waiting 0. If you need to guarantee that you are
waiting until the message is sent then do something like:
local sHandled
on Foo
put false into sHandled
send “Bar” to me in 0
wait until sHandled with messages
— do something else
end Foo
on Bar
put true into sHandled
end Bar
_______________________________________________
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