Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing arrays to .NET and getting arrays back
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01509041
Message ID:
01509060
Views:
54
>
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform