August 1999
Intermediate to advanced
1488 pages
72h 53m
English
vbarray.toArray()
The toArray() method of an instance of a VBArray returns a valid JScript array from a VBArray.
Listing 9.141 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. The array is then converted into a valid JScript array and an alert box is invoked to display a value in this array.
<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 it an initial ... |
Read now
Unlock full access