Re: Closing All FORMS from Single Button

From: Neville Sweet <sweet.neville.nj_at_bhp.com.au.no_junk_today_thanks>
Date: 1998/02/25
Message-ID: <01bd41a2$a7b66da0$45f11286_at_itwol-pc3963.itwol.bhp.com.au>#1/1


Ed,

Don't know if it will work, but adding a When-Window-Activated trigger to all your other Forms which checks whether a Global 'exit flag' has been set by the Main Menu, may have some potential.

Ed Jennings <jenningse_at_mindspring.com> wrote in article <34F3844C.429F_at_mindspring.com>...
> I'm writing an application that has a Main Menu with many buttons.
> The OPEN_FORM command is attached to most of the buttons and
> launch new FORMS that support subsets of the application
> functionality. On the Main Menu form, I have an 'EXIT' button.
> When this button is pressed, I want it to be able to forcibly
> close all of the open forms and the application to exit. The
> EXIT_FORM command seems to only apply to the current form.
> Is there some way I can make the Main Menu form aware of the
> other FORMS and force them closed?
>
> Any suggestions???????
> TIA
> Ed Jennings
Received on Wed Feb 25 1998 - 00:00:00 CET

Original text of this message