Sleep command
Reg Paling
reg.paling at lokanet.com
Tue Mar 3 23:48:30 EST 2015
Hi Bas,
From the Studio v6.1 Whatsnew61.pdf:
sleep() Function
A sleep() function has been added to allow you to suspend method
execution for a specified
length of time. The function sleep(milliseconds) suspends execution
for the specified
number of milliseconds, and returns true if execution was suspended
successfully or false if
an error occurred. Note this function is not available in
client-executed methods.
I wonder what sort of error could cause it to return false, and what you
could do about it if you trapped it?
Cheers,
Reg
On 4/03/2015 3:40 pm, Bastiaan Olij wrote:
> Hi All,
>
> Does Omnis have a sleep function where it just pauses for a few
> milliseconds?
> I need to halt execution of a method for a brief period of time to give
> an external process a moment to finish and in this case I can't really
> solve it with a timer..
>
More information about the omnisdev-en
mailing list