Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to add a collection to an object in code?
Message
De
13/03/2004 20:14:53
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
13/03/2004 15:32:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00886003
Message ID:
00886036
Vues:
15
Hi, Peter-

To add to David's reply, be sure to set the objects so created and assigned to properties to .NULL. The best way, IMO, is to create a subclass of the class itself. So,
ox = Createobject( "MyCustom" )
ox.oCollection = createobject( "collection" )
...

DEFINE CLASS MyCustom AS CUSTOM
  oCollection = .NULL. 
PROCEDURE Destroy()
  THIS.oCollection = .NULL.
ENDPROC
ENDDEFINE
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform