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 15:32:55
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
How to add a collection to an object in code?
Divers
Thread ID:
00886003
Message ID:
00886003
Vues:
66
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform