VBArray.dimensions()
JScript3.0+Syntax
vbarray.dimensions()
Description
The dimensions() method of an instance of a VBArray returns the number of dimensions of the array.
Example
Listing 9.138 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 number of dimensions the array contains.
Listing 9.138 Viewing the Number of Dimensions of a VBArray Object
<script LANGUAGE="VBScript"> <!-- Hide ' Define the VB Array Function myVBArray() ' Define variables for 2-D array positioning Dim i Dim j ' Define variable to hold incremented values to put into ' array and assign ... |
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.