If you use an indirect access method (ie. loBridge.InvokeMethod() or GetProperty()) wwDotnetBridge will return a ComArray object which has an internal Count property (and a bunch of array manipulation methods) to work with the array. This would be the easiest way to deal with arrays in VFP - especially if you have to modify the data.
Hi,
I am using wwDotNetBridge to retreive an array of objects. All works well using the GetArrayItem method...except I dont know how many elements are in the array. Is there a way to get the array length?
Thanks!
- Bo
DO wwDotNetBridgeLOCAL loBridge as wwDotNetBridge
loBridge = CreateObject("wwDotNetBridge", "V4")
loBridge.LoadAssembly("SomeNetAPI.dll"))
loClient = loBridge.CreateInstance("SomeNetAPI.Client")
loTaskList = loClient.getDetailedTaskList()
FOR lnLoop = 0 TO ??????
loTask = loBridge.getArrayItem(loTaskList, "taskList", lnLoop)
?loTask.taskNameENDFOR