VBArray.getItem() (Method)

An accessor method for retrieving items from the array.


JScript - 3.0
Internet Explorer - 4.0
Property/method value type:User defined
JavaScript syntax:IEmyVBArray.getItem(anIndex)
IEmyVBArray.getItem(anIndex1, anIndex2, ...)
Argument list:anIndexA reference to an item in the array
anIndexNAs many dimensions as are required to address the required item

This acessor method is used to extract the values from cells within the array. You cannot address the cells directly as you would with a native JavaScript array, although you can convert the VBArray to a native JavaScript array. Be careful though with multi-dimensional arrays.

You can use the dimensions() method to find out how many axes there are for addressing a multidimensional array. The lbounds() and ubounds() methods can be used to determine the extent of those axes.