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