Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ThisForm.Release does not close DE?
Message
De
18/02/2011 07:49:18
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
ThisForm.Release does not close DE?
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01500685
Message ID:
01500685
Vues:
280
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform