Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pausing Program
Message
De
18/06/2002 07:27:21
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00669622
Message ID:
00669637
Vues:
15
>What is the best way to pause program execution in VFP?

AFAIK, there is no built-in method for the end-user (like the Pause key in DOS). You can pause in several ways: with a WAIT WINDOW, with INKEY() (read the help for options), with a READ ... TIMEOUT, and calling the API function Sleep().

Which would be the best? I am not sure, and it may depend on your circumstances. But I guess that Sleep() would inform Windows that no CPU cycles should be alloted to your application (during the specified interval), thus making more time available for other applications.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform