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

Peter
>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
>
Peter Cortiel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform