Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Difference and When to use NEW/ADD/CREATEOBJECT()
Message
 
 
To
15/04/2004 10:30:07
John Deupree
Long Term Care Authority
Tulsa, Oklahoma, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00894349
Message ID:
00895182
Views:
20
John,

The BO should go away ok because the only reference to it would go away.

For "cleanliness" of design I always explicitly set the reference to .null. in the Destroy() event of the object holding the reference.

>Great information! I thought I knew how these worked, but now realize I didn't quite have it right. Re: object clean up - I use CREATEOBJECT to instantiate a business object based on the DE class on a form.
>
THISFORM.oSrvPlan = CREATEOBJECT('boSrvPlan',1)
>Are you saying that the object is not released when the form is released, even though the BO is 'tied' to a form property?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform