wwDotNetBridge::SetArrayItem

Sets an element on an already pre-sized array. The item must already exist in the array.

o.SetArrayItem(loObject,lcArrayProperty,lnIndex,lvValue)

Parameters

loObject

lcArrayProperty

lnIndex

lvValue

Remarks

Use CreateArrayOnInstance() to create and pre-size an array, then use SetArrayItem to fill in the array elements. It's more efficient than using AddArrayItem() which has to resize (ie. copy) the array for each new item added.

Example

loItem = loBridge.CreateInstance("VfpTest.VfpTestClass")

loBridge.CreateArrayOnInstance("")

See also:

Class wwDotNetBridge

© West Wind Technologies, 2004-2020 • Updated: 11/17/11
Comment or report problem with topic