Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript VBArray Object

The VBArray object provides access to Visual Basic safe arrays.

Methods: JScript VBArray Object

JScript VBArray Object Dimensions Method

The number of dimensions in a VBArray.

JScript VBArray Object getItem Method

Retrieves an item from a VBArray.

JScript VBArray Object lbound Method

The lowest index value used in a specified dimension.

JScript VBArray Object toArray Method

Converts the VBArray to a standard JScript array.

JScript VBArray Object ubound Method

The highest index value used in a specified dimension.

Syntax: JScript VBArray Object

new VBArray(safeArray)

Arguments: JScript VBArray Object

safeArray

A VBArray value.

Remarks: JScript VBArray Object

VBArray objects are read-only, and cannot be created directly. The safeArray argument must have obtained a VBArray value before being passed to the VBArray constructor. This can only be done by retrieving the value from an existing ActiveX or other object.

VBArrays can have multiple dimensions. The indices of each dimension can be different. The dimensions method retrieves the number of dimensions in the array; the lbound and ubound methods retrieve the range of indices used by each dimension.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.