Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
My VFP Collection not showing up in VB - Why
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00386791
Message ID:
00387126
Views:
23
>>I have defined a class (olepublic) that uses another class as a collection. The way the other class is embedded is by using the addobject() in the INIT of the first class.
>
>I didn't see where you added the object reference to the array property- which is how you would have to access the objects. Adding objects at runtime won't work in a VFP COM object, because the interface isn't defined at compile time, so the client can't know that the object exists. But you can allow the objects to be referenced through a predefined property...

I am not sure I understand this correctly.
After the init of the PHONES object. I can access the collection by
oPhones.Errors (assuming that oPhones is the instantiated object of the PHONES class)
Now should I add a property to the class PHONES say CollErrors and then do the following after instantiating the object ?
this.collErrors=this.errors
I will try this.
Thanks
Mohinder
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform