Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: How to get array length using wwDotNetBridge

$
0
0
Re: How to get array length using wwDotNetBridge
West Wind Client Tools
Re: How to get array length using wwDotNetBridge
Apr. 2, 2013
06:50 pm
3R314E0O5Show this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Bo Durban
Bo,

What are you doing to get the array?

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.

+++ Rick ---



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



Rick Strahl
West Wind Technologies


from Maui, Hawaii

Making waves on the Web


Viewing all articles
Browse latest Browse all 10393

Trending Articles