Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create a noninteractive wait() function
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00436062
Message ID:
00436116
Vues:
25
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform