JScript  

VBArray expected

[This is preliminary documentation and subject to change]

You supplied an object that was not a Visual Basic safeArray, when one was expected.

new VBArray(safeArray);

VBArrays are read-only, and cannot be created directly. The safeArray argument is a VBArray value, and 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.

To correct this error

See Also

VBArray Object | Using Arrays