Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning .F. from a form load
Message
From
16/02/2003 21:14:45
 
 
To
16/02/2003 19:38:36
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00753941
Message ID:
00753960
Views:
25
Are you returning to a READ EVENTS, or some kind of wait state? If your form is modal, it has its own built in wait state and can run if you don't return .F., but if you return .F. your program continues execution until either a wait state or the last executable line, at which point it will quit.

The standard Main.PRG looks like this:

*Setup commands...
DO MyMenu.MPR
READ EVENTS
*Shutdown commands...

Each menu choice calls a form, modal or modeless. The "Exit" menu choice calls the command CLEAR EVENTS, which skips past the READ EVENTS and completes program execution.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform