VBArrayNN n/a IE 4(Win) ECMA n/a  

  

The VBArray object lets JavaScript communicate with Visual Basic safe arrays. This kind of array is read-only, can be multidimensional, and is sometimes returned as a value from ActiveX controls. Methods of this object give JavaScript access to the VBArray data. For additional details, visit http://msdn.microsoft.com/scripting/jscript/doc/jsobjVBArray.htm.

 
Properties

None.

 
Methods
 
dimensions( )getItem( )lbound( )toArray( )ubound( )
dimensions( )NN n/a IE 4(Win) ECMA n/a  

  

Returns an integer corresponding to the number of dimensions of the VBArray.

 
Parameters

None.

 
Returned Value

Integer.

getItem( )NN n/a IE 4(Win) ECMA n/a  

getItem(dim1[, dim2[,...dimN]])

  

Returns the value of an item from the VBArray. Parameters specify the location in the array.

 
Parameters
 
  • Integer for the location within the array. For a multiple-dimension VBArray, use a comma-delimited map to the position.
 
Returned Value

Number, string, or other value from the VBArray.

lbound(), ubound( )NN n/a IE 4(Win) ECMA n/a  

lbound(dim) ubound(dim)

  

Return an integer of the lowest and highest index values available for a particular dimension of a VBArray.

 
Parameters
 
  • Integer for the location within the array.
 
Returned Value

Integer

toArray( )NN n/a IE 4(Win) ECMA n/a  

  

Returns a JavaScript array version of the VBArray.

 
Parameters

None.

 
Returned Value

Array.