Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create a noninteractive wait() function
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00436062
Message ID:
00436116
Views:
24
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform