Re: Multiple Initializations of a Package
From: Dan Townsend <townsend_at_ebmud.com>
Date: 1997/09/10
Message-ID: <3416B6D8.3151_at_ebmud.com>#1/1
Date: 1997/09/10
Message-ID: <3416B6D8.3151_at_ebmud.com>#1/1
You should be able to define a boolean variable in your package (possibly PACKAGE_IS_INITIALIZED BOOLEAN := FALSE;). Then check the variable in the initialization code of the Package. If FALSE, initialize and set it to TRUE, otherwise skip initialization.
James A. Starkey wrote:
>
> I have a package in a library containing procedures invoked from both
> menu startup code and a WHEN-NEW-FORM-INSTANCE trigger that is suffering
> from both multiple initializations and multiple invocations of the
> package start up code. When I bring up a second form, also referencing
> the pack on a WHEN-NEW-FORM-INSTANCE trigger, the package is initialized
> a third time.
-- Dan Townsend, Enterprise Database Architect East Bay Municipal Utility District 375 Eleventh Street, Oakland, CA 94607-4240 (510) 287-0272 mailto:townsend_at_ebmud.comReceived on Wed Sep 10 1997 - 00:00:00 CEST
