Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing arrays to .NET and getting arrays back
Message
 
À
02/05/2011 12:02:48
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:
01509041
Message ID:
01509060
Vues:
53
>
>I have built a webservice wrapper in C# for VFP to eat. Works great. All my exposed methods are receiving and returning to and from VFP as expected - except arrays
>

Passing arrays to/from VFP through COM sucks. I've almost always been much happier doing things like passing strings (for example, convert the array to a comma-delimited list) or using serialization. Or (if I have control of the .NET code), writing a few helper methods that can iterate over the array for me and pass back an object w/properties instead - usually by just passing in an index into a method which returns that element #.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform