Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM INTEROP COLLECTIONS FROM C# TO VFP
Message
From
26/11/2009 12:34:54
 
 
To
26/11/2009 08:41:18
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01436645
Message ID:
01436662
Views:
72
Off the top of my head, you'll need to create a custom class that inherits from collection, then COM enable it.

>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
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform