Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Abnormal Program closing
Message
 
 
To
05/05/1998 10:34:13
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00097009
Message ID:
00097238
Views:
17
>>I have a project that I compiled into an executable...
>>The problem is that the program races through and shuts itself down when it should be waiting for user input. It runs fine in design mode and compiles with no errors. I have no manual and have no idea of
>>what command I could use to fix it. Edward Pikmen mention a
>>READ EVENTS and CLEAR EVENTS, but I could not get them to work.
>>
>>Thanks...
>
>The READ EVENTS statement starts event processing. It is usually executed after you have done all of your initialization and put up your menu. The only time CLEAR EVENTS should be issued is when you are finished and want to exit the system. E.g., the user clicks the "Exit" menu option or toolbar button.

In addition to what Bill has stated, READ EVENTS can handle the each events of the entire application.

* MAIN.PRG

DO initial.prg && SET commands
DO mymenu.mpr
READ EVENTS
CLOSE ALL
CLEAR ALL
SET SYSM TO DEFA

Where: mymenu.mpr calls Forms, or programs
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Reply
Map
View

Click here to load this message in the networking platform