Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pausing Program
Message
From
18/06/2002 07:27:21
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00669622
Message ID:
00669637
Views:
17
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform