Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Difference and When to use NEW/ADD/CREATEOBJECT()
Message
 
 
À
15/04/2004 10:30:07
John Deupree
Long Term Care Authority
Tulsa, Oklahoma, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00894349
Message ID:
00895182
Vues:
19
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform