<< Click to Display Table of Contents >> AdoRecordset:CloseOnAxit |
|
Does the recordset automatically get closed when X# discards the object.
PROPERTY CloseOnAxit AS LOGIC
LOGIC Does the recordset automatically get closed when X# discards the object.
The default value for this property is TRUE: this causes the recordset to be automatically closed when the X# object gets collected by the X# garbage collector.
The only situation where this is not applicable is when there is more than one X# object pointing to the same COM recordset. This may happen if you make a 'Clone' of the recordset by calling:
•AdoRecordSet:AsOleAutoObject()
•AdoRecordSet:.ctor() with another recordset as parameter
In all these cases Xs2Ado will automatically set this property to FALSE.
It is up to you to close the recordset in these cases.
AdoRecordset, AdoRecordSet:Close()