Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Pass an array as a parameter to a Visual foxpro COM server

Status
Not open for further replies.

viking2020

Programmer
Jul 9, 2003
7
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top