Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with VFPCOM..DLL (no close form..)
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Problem with VFPCOM..DLL (no close form..)
Divers
Thread ID:
00299280
Message ID:
00299280
Vues:
53
I am creating classes to work with ADO(soon it will publish them.). Use VFPCOM.DLL to be able to catch the events that ADO fire, until here there is no problem until drop the class in a form, and it is not possible to close it without emitting CLEAR ALL...

*-- Sample code..
TADODATOS.BaseClass=Custom

TADODATOS.Init
WITH this
.oVFOCOMM=Createobject(...
.oAdo=Createobject('adodb.recordset')
.VfpComm.BindEvents(...

etc....
ENDWITH


TADODATOS.DESTROY

***************************
this not call in Form1.Release or Form1.Destroy!, only
in CLEAR ALL...
********************
WITH this
.VfpComm.UnBindEvents(...
.oAdo=.NULL.
.oVFOCOMM=.NULL.
etc....
ENDWITH
The Life is Beautiful!

Programmer in
Delphi, VS.NET
MCP
Répondre
Fil
Voir

Click here to load this message in the networking platform