Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining Object References and Closing
Message
From
03/10/2001 16:07:51
 
 
To
03/10/2001 15:58:06
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00563520
Message ID:
00563858
Views:
20
>>I think he is referring to the Release() method. For example on a form, if you have a close button you call Thisform.Release(). For a custom object you would include this method and instead of doing something like release myObj you would call myObj.Release(), setting the release flag for the Clean_up method called from the Destroy().
>
>So, would it make sense to put my calls for MyObj.Release in the Destroy method of the form? Is there a more logical place?
>
>Renoir

The way I understood the article, you call myobj.release from "outside" to get rid of the object. Then the release sets the lRelease flag for the Clean_up method. Both Release() and Destroy() would call Clean_up.

I know, it's kind of confusing but it is explained in the article that this covers for different scenarios.
Previous
Reply
Map
View

Click here to load this message in the networking platform