Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create a noninteractive wait() function
Message
 
 
À
30/10/2000 15:35:13
Mike Mattos
Nationwide Computers
Mississauga, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00436062
Message ID:
00436068
Vues:
25
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform