Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Main VFP window won't go away after Exit form?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00553709
Message ID:
00554387
Views:
20
This message has been marked as the solution to the initial question of the thread.
Hi!

Usually I do not use menu opening form. My projects start from the PRG file wich runs menu and then user use that menu (from main VFP screen) to select which forms to run. Then, when user select 'Exit' from menu, or close VFP main screen (ON SHUTDOWN functionality), I do an attempt to close all existing windows, release all objects and then quit. When I test this process, I catch all objects and conflicts that occur during such process and resolve them (this usually not hard), so application always exit correctly and without a single error message.

When your starting module is a form, then that form and all other forms should be closed.

Youc an do management of all forms using _Screen.Forms collection.

HTH.

>Vlad,
>
>I found out the problem, but wonder about the solution. All my forms in my app are Modal. When I changed the opening menu form to Modeless and Exit the app, the Main VFP Window disappears as desired. But when the opening menu form is Modeless and all my other forms are Modal, then the forms I run after the opening menu form do not THISFORM.Release when I Exit all the other Modal forms. I guess I should change all of the forms to Modeless and be done with it, but the guy I work with likes me to use Modal forms moreso then Modeless forms. Not sure why. For now I will make all forms Modeless and move on.
>
>Is there a way to have an Modal opening menu form called from a .PRG that closes the Main VFP Window when you exit the opening menu form? I guess I need to review why we use Modal forms over Modeless forms.
>
>Thanks for helping me.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform