Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM INTEROP COLLECTIONS FROM C# TO VFP
Message
From
26/11/2009 08:41:18
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
COM INTEROP COLLECTIONS FROM C# TO VFP
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01436645
Message ID:
01436645
Views:
157
Hi folks,

I'm creating a component in C# to be used in VFP.
The basic operation is working fine, and VFP can see all the properties and methods.

Right now I need to know how I can create a very simple one dimension Collection object in C#, and make it accessible from VFP (I already managed to pass simple or multi dimensional arrays).

What class do I need to use for this purpose ?

I've tried several ways with no success, the simplest was the following:
using System.Collections;
ArrayList MyCollection = new ArrayList();
MyCollection.Add("Visual FoxPro");
MyCollection.Add("C#");
Can someone provide any insight regarding this?

Thanks in advance !

Regards,

Cesar
Next
Reply
Map
View

Click here to load this message in the networking platform