Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add a Collection to an Object
Message
De
13/07/2008 15:34:00
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Add a Collection to an Object
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01330962
Message ID:
01330962
Vues:
65
Nevermind, I got it using ADDPROPERTY(...)

Don't know where my head is at today! :o)


I am creating an object based on an object in a .net com interop dll. The object contains a few properties and a collection. When I first create the object, it has no visible properties, however I can set property values except for one. One of the object's properties is a collection. I need to add the collection as a property to the existing object, but this fails:

oObject.Add('myCollection','collection')

why?

I am receiving an object which matches this type of object in an event of the com interop dll. The arg passed contains the same type of object including the collection as one of its properties. My goal is to copy that object to my object, but when I get to the collection in the passed object, it is visible, but my collection is not. How do I copy the collection property from the passed object into my object (as a property of my object)?

TIA,
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform