Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create a noninteractive wait() function
Message
 
 
To
30/10/2000 15:35:13
Mike Mattos
Nationwide Computers
Mississauga, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00436062
Message ID:
00436068
Views:
24
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.
>
>given that this may be in a non interactive situation, INKEY() isn't a good option. Creating a timer seems a rather complicated way to go, and since I care about system load, I don't want to use a do while loop.
>
>Waybackwhen ( fox 2 ) , I would RUN a program to do this for me, but loading command.com in windows tends to mess up the display and steal keystrokes!
>
>Any suggestions ?
>
>thx in advance
>
>mike
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform