Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add a collection to an object in code?
Message
 
 
To
13/03/2004 15:32:55
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00886003
Message ID:
00886005
Views:
15
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
Previous
Reply
Map
View

Click here to load this message in the networking platform