Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add a collection to an object in code?
Message
From
13/03/2004 15:32:55
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
How to add a collection to an object in code?
Miscellaneous
Thread ID:
00886003
Message ID:
00886003
Views:
65
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.AddProperty('CAT')
oEmpl.AddProperty('SUBCAT')
oEmpl.AddProperty('XNTYPESUB')
oEmpl.AddProperty('ACTNAME')
oEmpl.AddProperty('SHORTNAME')
oEmpl.AddProperty('PAYEE_ID')
oEmpl.AddProperty('IDNUM')
oEmpl.AddProperty('NAME1')
oEmpl.AddProperty('NAME2')
oEmpl.AddProperty('ADDR1')
oEmpl.AddProperty('ADDR2')
oEmpl.AddProperty('CITY')
oEmpl.AddProperty('STATE')
oEmpl.AddProperty('ZIP')
oEmpl.AddProperty('TAXID')
oEmpl.AddProperty('PHONE')
oEmpl.AddProperty('BUSGRP_ID')
oEmpl.AddProperty('BUSLOC_ID')
oEmpl.AddProperty('BUSSEG_ID')
oEmpl.AddProperty('DEPT_ID')

oEmpl.AddCollection(xxxxxx)  <------------ how ??
thanks

Peter
Peter Cortiel
Next
Reply
Map
View

Click here to load this message in the networking platform