General information
Category:
Coding, syntax & commands
Title:
Dereferencing/releasing an object
(VFP 7 and Windows 2000, SP2)
I have a form method with a local object, loParameters, created as custom. It has several properties and another custom object, loParameters.SearchOptions.
I pass object loParameters to a modal form. In the modal form's INIT event the parameter object is stored to a form property object and in the modal form's UNLOAD event this form property object is returned to the calling method.
In the calling method if I then attempt to issue the assignment, "loParameters.SearchOptions = .NULL.", I get the error, "SEARCHOPTIONS is a method, event, or object". If I attempt to RELEASE it I get the error "Must be a variable or array".
Questions:
1) Am I mistaken in my thinking that I should be able to RELEASE or assign .NULL. to object loParameters.SearchOptions?
2) Is "RELEASE loParemeters" or "loParameters = .NULL." sufficient to fully free up object loParameters.SearchOptions?
Thanks!
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only