Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Curious about QUIT command in an app.
Message
 
To
17/03/2000 10:31:25
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00346487
Message ID:
00347079
Views:
29
>Hi Bruce,
>I am missing the point, 'cause I don't know what TLs are!
>Quit may smoothen closing, and I have no quarrel with QUITting to get an application to appear to end more smoothly. My only misgiving is that by using QUIT, we may mask other issues. (This is a guess, I admit.) As we get more experience with the issues involved in ending a VFP session, we can improve the code that shuts things down and quit will be superflous. Currently if someone shuts down NT, or Ends Task, my company's code handles this smoothly. However, I'm sure there are issues I'll discover in the future that aren't being address correctly. If I use QUIT, maybe I'll never know... and that's not all bad.

Oh - TL is top-level. TLs do not respect ON SHUTDOWN, but adding an

ON SHUTDOWN QUIT

to the main prg will actually fire in cases of abrupt termination, when the CLEAR EVENTS is never hit. In my testing, I found it was a good addition, and at the least would not hurt anything, and at the best, may "smoothen" the shutdown process. One could go further with the idea, as Ed has suggested...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform