Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

VBArray Object

Provides access to Visual Basic safe arrays.

varName = new VBArray(safeArray)
varName

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

safeArray

Required. A VBArray value.

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.

NoteNote

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.

The VBArray object has no properties.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.