Hi Experts,
It's me once again. I have a business object that opens certain cursoradapter (CA) objects. For example, boCustomer will open the Customer CA object and the Salesman CA object.
If I, do:
Both closes the associated tables, as expected, but assigning NULL to oCustomer will still "leave a remnant" :
My question is, is using RELEASE a better or safer way as it does not leave any "remnant"?
Thanks In Advance. Long Live the Fox!
It's me once again. I have a business object that opens certain cursoradapter (CA) objects. For example, boCustomer will open the Customer CA object and the Salesman CA object.
Code:
oCustomer = NEWOBJECT( "boCustomer" ) && the Init does the creating of cursoradapters Customer and Salesman
If I, do:
Code:
oCustomer = NULL
or
RELEASE oCustomer
Both closes the associated tables, as expected, but assigning NULL to oCustomer will still "leave a remnant" :
Code:
oCustomer = NEWOBJECT( "boCustomer" )
oCustomer = NULL
? VARTYPE( oCustomer ) && returns "X" -> null
oCustomer = NEWOBJECT( "boCustomer" )
RELEASE oCustomer
? VARTYPE( oCustomer ) && returns "U" -> unknown or variable does not exist
My question is, is using RELEASE a better or safer way as it does not leave any "remnant"?
Thanks In Advance. Long Live the Fox!