Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pause the program.
Message
From
23/05/2007 12:22:15
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
23/05/2007 12:15:13
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01227970
Message ID:
01227975
Views:
21
>Hi,
>I have a loop to display out the record on a defined window,
>but I want to pause the loop by pressing the PAUSE key of the
>keyboard. I try to press the PAUSE key, but the loop continue.
>How to code it ?
>
>Please advise.
>
>Derek

Repeatedly use the inkey() function, to check whether the user pressed a certain key.

For the actual pause, one option might be a MessageBox(), with a message like [Click "OK" to Continue.], or a wait window, with a message "Press any key to continue".
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
Next
Reply
Map
View

Click here to load this message in the networking platform