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:
00436076
Views:
22
Mark,

How will this work when it is called with tnWaitTime=5 and the current time is 11:59:57pm???

>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,
Frank Camp
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform