>Mark,
>
>How will this work when it is called with tnWaitTime=5 and the current time is 11:59:57pm???
How about this correction:
lnStart = datetime()
do while datetime() < lnStart + tnWaitTime
enddo
>>You have practically eliminated most, if not all, very good options. Is the following not an option?
>>
>>lparameter tnWaitTime
>>if vartype(tnWaitTime) <> "N" or tnWaitTime < 1
>> tnWaitTime = 5
>>local lnStart
>>lnStart = seconds()
>>do while seconds() < lnStart + tnWaitTime
>>enddo
>>return .t.
>>
>>>sometimes I need a code snippet to WAIT(5) , perhaps for a modem ot connect, etc.
>
>Regards,
Mark McCasland
Midlothian, TX USA