VBArray.getItem()
JScript3.0+Syntax
vbarray.getItem(index) vbarray.getItem(indexA, indexB, …, indexN)
Description
The getItem() method of an instance of a VBArray returns the value at the index passed. If the array is multi-dimensional, you pass the necessary coordinates to access the location you want.
Example
Listing 9.139 calls a VBScript function from a JavaScript new operator to create a Visual Basic safe array. The array itself writes the contents of this two-dimensional array to the user's page. An alert box is also invoked that contains the value in the second column of the second row.
Listing 9.139 Using the getItem() Method
<script LANGUAGE="VBScript"> <!-- Hide ' Define the VB Array Function myVBArray() ' Define variables for ... |
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.