Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COM INTEROP COLLECTIONS FROM C# TO VFP
Message
De
26/11/2009 12:34:54
 
 
À
26/11/2009 08:41:18
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01436645
Message ID:
01436662
Vues:
73
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform