Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ON SHUTDOWN/File - Exit
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00185955
Message ID:
00186141
Views:
16
>Why would I want to test to see if .BaseClass property = "FORM"? If the object exists and is in _SCREEN.Forms() what else could it be? If it's a formset, I still want to .QueryUnload() and .Release(), right? By the way, I don't remember where this code came from, but I'm pretty sure I didn't write it, so there may be ramifications I don't understand. Also, my users probably never use the menu to close the app anyway, so the code might not have been run enough to expose its bugs.

If I remember correctly, I included this for development purposes because I had a menu item to open the Data Session window if Version(2) = 2. Testing to make sure a I a "Releaseable" form kept me from getting errors if I still had the Data Session window open. I don't think I have this problem in VFP6 though.

I think I may have at some time tested to see if the form was MODAL. If so, I would terminate the shutdown process until the user took action on the MODAL form. I tend to program overly defensive because of the creative ways users have come up with to abuse applications.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform