Re: Closing Multiple Forms From Menu>Exit
From: CoriBJ <coribj_at_aol.com>
Date: 1997/12/15
Message-ID: <19971215011900.UAA21170_at_ladder01.news.aol.com>#1/1
Date: 1997/12/15
Message-ID: <19971215011900.UAA21170_at_ladder01.news.aol.com>#1/1
Hi,
The following has worked for me:
- Initialize a global to 'N' e.g. Default_Value('N', 'GLOBAL.exit_app');
- Each form should include this form level trigger:
[Quoted] WHEN-WINDOW-ACTIVATED: Check if global is now 'Y' e.g. If :GLOBAL.exit_app = 'Y' Then Exit_Form; End If;
3. A procedure or trigger should exist to be called by the menu
item that exits the application:
e.g. Copy ('Y', 'GLOBAL.exit_app'); Exit_Form;
As each form is exited, the next form becomes active, the WHEN-WINDOW-ACTIVATED fires, and that form exits.
This is also documented in the Developer 2000 documentation.
Hope it helps.
Cori>
>Hi! I am having a problem.
>I have a multiple forms application and there is no more room for
>buttons on it.
>There is a File>exit command and I want to close all the forms..
>Using menu I can't set a global variable can I?
>Anyways all I can close is the first form!
>
>Anyone else experienced this problem???
>
>
Received on Mon Dec 15 1997 - 00:00:00 CET