Share via


VBArray Object

Provides access to Visual Basic safe arrays.

varName = new VBArray(safeArray)

Arguments

  • varName
    Required. The variable name to which the VBArray is assigned.

  • safeArray
    Required. A VBArray value.

Remarks

The safeArray argument must have a VBArray value before being passed to the VBArray constructor. This can be acquired by retrieving the value from an existing ActiveX or other object.

Note

Arrays created in JScript and arrays created in Visual Basic both interoperate with .NET Framework arrays. Consequently, the elements of an array created in Visual Basic are directly accessible in JScript. The VBArray object is only provided for backwards compatibility. For more information on arrays, see Array Object, Dim Statement, and Array.

A VBArray 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.

Properties

The VBArray object has no properties.

Methods

VBArray Object Methods

Requirements

Version 3

See Also

Reference

new Operator

Array Object

Array