ComArray is a wwDotnetBridge wrapper type that can be passed to InvokeMethod() or SetProperty() and is converted by wwDotNetBridge into the native array type that is stored in the Value property thus allow keeping the array entirely in .NET without having to be marshaled into FoxPro arrays.
o.CreateArray(lcDotnetElementType)
Use System.Object if you need to pass mixed types for each element rather than a single type for each element.
loBridge = CREATEOBJECT("wwDotNetBridge") loService = CREATEOBJECT("Sample.MyService") *** Create an instance of the array with the *** specific type of the elements LOCAL loArr as Westwind.WebConnection.ComArray loArr = loBridge.CreateArray("System.Object") *** Add Items loArr.AddItem("New Item") loArr.AddItem(10) *** Create a .NET object and set properties loCust = loBridge.CreateInstance("Sample.Customer") loCust.Company = "West Wind" loCust.Entered = DateTime() *** Add the object to the array loArr.AddItem(loCust) *** Now call a method that takes the array as a parameter loBridge.InvokeMethod(loService,"PassArray",loArr)