Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Program stuck on Read Events
Message
From
28/08/2008 15:58:19
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
28/08/2008 10:37:03
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01342556
Message ID:
01342803
Views:
11
>Hi. I call a screen followed by a Read Events. When I quit the screen, debug shows me that the cursor is sitting on Read Events. How do I get the cursor to continue?
>
>Thanks, Randy

That's the whole idea of this command - to get "stuck on" READ EVENTS, and continue processing user input.

Your main program should have three parts:

1. Setup code
2. Your main loop - this is the single command, READ EVENTS!
3. Cleanup code, that runs when the user quits the application.

You break out of READ EVENTS with the command CLEAR EVENTS; typically, this would be invoked from the "File | Quit" menu command.
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