Availability: |
| |||
Property/method value type: | User defined | |||
JavaScript syntax: | IE | myVBArray.getItem(anIndex) | ||
IE | myVBArray.getItem(anIndex1, anIndex2, ...) | |||
Argument list: | anIndex | A reference to an item in the array | ||
anIndexN | As 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.
Prev | Home | Next |
VBArray.dimensions() | Up | VBArray.lbound() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |