Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to add a collection to an object in code?
Message
 
 
À
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:
00886005
Vues:
16
This message has been marked as the solution to the initial question of the thread.
Peter,
reateobject( "custom" )
ox.AddProperty( "oCollection" )
ox.oCollection = createobject( "collection" )
ox.ocollection.Add( "test" )
>I want to add a collection property to an object. the object is employee which has certain uniqy properties like hire data, name birthdate and som multiple objects like deduction name, deduction amount,deduction type etc..
>
>
>But I can't seem to add a collection type property
>
>
>LOCAL oEMPL as Custom
>oEmpl=CREATEOBJECT("CUSTOM")
>
>oEmpl.AddProperty('PAYEE_ID',7570)
>oEmpl.AddCollection(xxxxxx)  <------------ how ??
>
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform