AndrewMozley
Programmer
I have an application which includes a class of utility functions; this class opens several tables (non-exclusive) in a separate data session, and its methods are invoked from several forms. I instantiate this class (as anm_util) when the application fires up.
One of the forms (say EXCL_FORM), however, likes to have exclusive use of several tables. Accordingly I include code before I run this form.
This works fine so far. The tables specified in the data environment of EXCL_FORM are opened, and the form runs.
When this form finishes I would like to re-instantiate anm_util. To do this I need the tables used by EXCL_FORM to have been closed. Putting a break-point into the Unload() or Release() methods of EXCL_FORM, even after their DEFAULT() methods have run, does not help; All the tables specified in the data environment are still open.
I would like to know how I can arrange to execute some code (re-instantiating anm_util) after all the tables specified in the data environment of EXCL_FORM have been closed.
Thanks
One of the forms (say EXCL_FORM), however, likes to have exclusive use of several tables. Accordingly I include code before I run this form.
Code:
RELEASE anm_util
This works fine so far. The tables specified in the data environment of EXCL_FORM are opened, and the form runs.
When this form finishes I would like to re-instantiate anm_util. To do this I need the tables used by EXCL_FORM to have been closed. Putting a break-point into the Unload() or Release() methods of EXCL_FORM, even after their DEFAULT() methods have run, does not help; All the tables specified in the data environment are still open.
I would like to know how I can arrange to execute some code (re-instantiating anm_util) after all the tables specified in the data environment of EXCL_FORM have been closed.
Thanks