Sleep command

Reg Paling reg.paling at
Tue Mar 3 23:59:17 EST 2015

Hi Bas,

An extract from my code for pre-6.1:  (Er, I don't know who would have 
written that comment in the code!)

Calculate lvCheckFinishDateTime as 
    TCPPing ('invalidhost',256,100)      ;; This will provide some delay 
without using full CPU. If somebody has named their computer 
'invalidhost' then the ping will be successful. This is not a big 
problem, and if someone is stupid enough to name their computer 
'invalidhost' they deserve to have problems.
Until #D>lvCheckFinishDateTime


On 4/03/2015 3:50 pm, Bastiaan Olij wrote:
> Rats, I need something in 6.0, not ready to move up to 6.1 yet..
> Cheers,
> Bas
> On 4/03/2015 3:48 pm, Reg Paling wrote:
>> 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
> _____________________________________________________________
> Manage your list subscriptions at

More information about the omnisdev-en mailing list