Hi Experts,
I did a form class for data entry purposes. It uses a DE class (a subclass) and CA classes in it (also subclasses). I have an oDataLayer property which I assign an object reference to the DEClass like so:
ThisForm.oDataLayer = EVALUATE( "ThisForm." + This.DEClass )
It has a Cancel method which at the end, does a ThisForm.Release.
The form's release fires alright. The form disappears. But checking the Data Session window, the cursors are still there! And although the form disappears from sight, it is still in the Windows menu of our VFP IDE.
The Destroy event of my form class has this:
ThisForm.oDataLayer = NULL
I have put in MESSAGEBOX markers in the Destroy of the form and the DE classes. The form destroy fires, but the DE destroy does not.
If I instantiate the DE class by itself, it works properly in the sense that RELEASEing it automatically close the tables/cursors as well.
Thanks once again for any of your expert help.
Dennis