Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dereferencing/releasing an object
Message
From
27/11/2001 20:36:07
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, United States
 
 
To
27/11/2001 17:04:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00586488
Message ID:
00586735
Views:
36
Thank you very much for taking the time to respond to my post. I apologize my post wasn't clearer.

I believe you correctly understood my question. My parent form called a modal child form passing a parameter object to the child form and back again. Yes, you are quite correct, the parameter object is indeed passed by reference. This, of course, can have significant implications. DO FORM..., here, does not require a TO clause.

My need/interest here is simply that I want to be sure that certain object references are properly released and so I am explicitly releasing them.

I find to remove object loParameters.SearchOptions, rather than the RELEASE command, the syntax I need to use is:
	loParameters.RemoveObject( "SearchOptions" )
(The TO clause was not the culprit here.)

Remaining question: I am still unclear regarding the following scenario:
	oObj = NewObject( "Custom" )
	oObj.NewObject( "oChildObj", "Custom" )
Given the above, would oObj.oChildObj be correctly released by simply assigning .NULL. to oObj? Do you happen to have insight here?

Thanks again!

Spence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform