viking2020
Programmer
Hello
I am trying to create a COM component using Visual Foxpro and using the COM components in C# .NET.
I am not able to figure out how to pass an array as a parameter to the visual foxpro function. Actually I want the results to be returned back in an array or a List. It would be great if some knows how to send an array as a parameter to a foxpro function.
eg:
DEFINE CLASS ComServer AS SESSION OLEPUBLIC
....
FUNCTION getArray(arrName() AS String @)
// Perform action on arrName array..
ENDFUNCTION
....
ENDDEFINE
Problem with the above code.
In my C# program the COM component expects an argument of type object : obj.getArray(ref Object) INSTEAD of obj.getArray(ref string[] s)
Thanks
Balaji
I am trying to create a COM component using Visual Foxpro and using the COM components in C# .NET.
I am not able to figure out how to pass an array as a parameter to the visual foxpro function. Actually I want the results to be returned back in an array or a List. It would be great if some knows how to send an array as a parameter to a foxpro function.
eg:
DEFINE CLASS ComServer AS SESSION OLEPUBLIC
....
FUNCTION getArray(arrName() AS String @)
// Perform action on arrName array..
ENDFUNCTION
....
ENDDEFINE
Problem with the above code.
In my C# program the COM component expects an argument of type object : obj.getArray(ref Object) INSTEAD of obj.getArray(ref string[] s)
Thanks
Balaji