Re: Closing forms Runtime
Date: Fri, 18 Jun 1999 19:24:20 GMT
Message-ID: <7ke6cn$q21$1_at_nnrp1.deja.com>
Oracle TechNet has a writeup on this.
EXITING MULTIPLE FORM APPLICATIONS
[Quoted] DocumentID:9516423.61 Title: Exiting Multiple Form Applications
Basically, they say to set a global: Quit_all to "N" when the first form starts, then set it to "Y" when you want to close your forms. Each form needs to check Quit_all when activated, this way, subsequent forms detect Quit_all = "Y" and close themselves.
Here's some snips from the writeup.
...
Note: Include this trigger on the initial form.
This initializes the global variable.
When-New-Form-Instance
:global.quit_all := 'N';
...
Note: This trigger needs to be on every form in the application,
including the initial form. Create it at the form level. It fires
when the form regains focus.
When-Window-Activated
IF :global.quit_all = 'Y' THEN EXIT_FORM; END IF;
they mentioned code to put under a button (to close forms) When-Button-Pressed
:global.quit_all := 'Y'; EXIT_FORM;
they also mentioned that if your running your own menus, it's easier to add a menu item to close forms. This would avoid adding the button on every form.
you're really lucky if you've got subclassed forms (only need to make one change to class' WHEN_FORM_ACTIVATED trigger.)
Good Luck. Rich
In article <376a60ab_at_news.ip.pt>,
"vmlf" <vmlf_at_hotmail.com> wrote:
> Is there a way of closing the forms runtime without having to close
all open
> form modules?
>
> TIA
>
> vmlf.
>
>
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Received on Fri Jun 18 1999 - 21:24:20 CEST