VBArray

JScript3.0+Syntax

var variable = new VBArray(vbarray)

Description

The VBArray object provides access to Visual Basic safeArrays. These arrays are often written on the same HTML page and are written in VBScript. Table 9.18 lists the methods of the VBArray is object.

Table 9.18. Methods of the VBArray Object
MethodDescription
dimensions()Returns the number of dimensions in the array
getItem()Returns the item at a specified location
lbound()Returns the lowest index value of the dimension in the array
toArray()Returns a JScript array from the VBArray passed
ubound()Returns the highest index value of the dimension in the array

Example

Listing 9.137 calls a VBScript function from a JavaScript new operator to create a Visual Basic safe array. ...

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.