Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Putting VFP to
Message
De
08/08/2001 18:28:28
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
 
À
08/08/2001 17:10:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00541567
Message ID:
00541600
Vues:
13
>I know I've seen this before, but I can't remember the answer.
>
>How does one put a VFP application to sleep for some number of seconds? In 2.6 I would write a loop which did nothing
>
>
>PROCEDURE sleep
>PARAMETERS nWait
>PRIVATE ALL
>nSeconds = SECONDS()
>nEnd = nSeconds + nWait
>DO WHILE SECONDS() < nEnd
>  ** Do Nothing
>ENDDO
>
>
>I'm pretty sure I've seen a reference to an API call which does the same thing. Could someone please post an example for me???
>

If you want to be able to wake up on demand:
= INKEY([nSeconds])
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform