Passing Arrays to a .NET COM object from Visual FoxPro
Posted by: Rick Strahls WebLog,
on 07 Jun 2005 |
View original
A number of people have asked me about passing arrays to .NET functions from Visual FoxPro applications. The problem here is that Visual FoxPro arrays are not formatted the right way to just be called to a .NET COM object by default. VFP arrays are 1 based while in general COM objects expect arrays to be 0 based so you need to fix up arrays to make this happen. .NET arrays are always 0 based unless explicitly declared otherwise.
Assume you have a method in a .NET COM object that looks like...