Information générale
Titre:
What can Cause a Data Session to stay open.
Hi All,
From form A I post some records into form B.
The table in form B is within a child grid.
so I have to turn off the relation post the records
and then turn the relation on, something like that.
While m.loEmployeeForm is the reference object of form B.
This code is within form A.
WITH m.loEmployeeForm.pgfChild.Page1.grdChild
*** Select the Perant
SELECT (.LinkMaster)
m.lcRelExpr="cEmp_SSN"
*** Turn off the relations
SET RELATION OFF INTO (.RecordSource)
.... More Code
ENDWITH
Latter on I close both forms and open another one and there I have
a problem I can not delete a table, even though USED() is FALSE.
I am getting an error that the table is busy.
In my Init method of that form I have the following code:
IF VARTYPE(oCustomApp)=="U"
PUBLIC oCustomApp
oCustomApp=NEWOBJECT("CustomApp","LasApp")
ENDIF
If I change the above code into the followng the
problem is gone:
IF VARTYPE(oCustomApp)=="U"
PUBLIC oCustomApp
SET CLASSLIB TO LasApp
oCustomApp=CREATEOBJECT("CustomApp")
ENDIF
Now anybody has an idea about it. There are no transcations
either, in form A or form B.
Thanks
Doron
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement