Focal Point
Maintain "Winform Close" Not Closing Forms

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3381046772

March 25, 2008, 10:39 AM
KentO
Maintain "Winform Close" Not Closing Forms
We have maintain programs that show various forms so that the users can enter information on the appropriate form. I do a "winform close" after each form before I "show" the next form and a final "winform close_all" to exit the program. But there are forms left open so that the users has to click the exit button multiple times to close all the forms and exit the program.

Is there a solution to the "Winform close" not closing forms? Would an upgrade from 7.6.0 solve this problem? We are on a Windows Server.

Kent

This message has been edited. Last edited by: KentO,


Windows2003 Server, WebFOCUS 7.7.02 Developers Studio and MRE
March 25, 2008, 11:35 AM
Alan B
Kent

For there to be multiple forms needing CLOSEing, then these could not have been properly closed before opening another form. Are you using a driver type syntax as explained here?

I've never had a problem when using this type of technique on any version from 4.3 to 7.6.


Alan.
WF 7.705/8.007
March 26, 2008, 10:42 AM
Maintain Wizard
Kent
The problem may be this: You cannot have code after a window close statement. If you have a trigger on a form that has:

Winform Close currentform
Winform Show NextForm

Maintain gets confused. The Close SHOULD terminate any activity on this form, but you are then telling it to go and do something else. This may be why forms are getting left behind.

The easiest way around this is to have a parent form, and have all forms return to the parent before displaying the next form.

Mark
March 26, 2008, 01:15 PM
KentO
Thanks Alan and Mark for the bad news. I converted all our FOCUS 6 programs to WebFocus using the procedures that you say are causing this problem. So I have quite a bit of recoding to do. The users are only complaining about two programs so maybe I can get away with just fixing them.

Kent


Windows2003 Server, WebFOCUS 7.7.02 Developers Studio and MRE