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

 

JScript VBArray Object toArray Method

Converts a VBArray to a standard JScript array.

Syntax: JScript VBArray Object toArray Method

safeArray.toArray( )

Arguments: JScript VBArray Object toArray Method

safeArray

A VBArray object.

Remarks: JScript VBArray Object toArray Method

The conversion translates the multidimensional VBArray object into a single dimensional JScript array. Each successive dimension is appended to the end of the previous one. For example, a VBArray object with three dimensions and three elements in each dimension is converted into a JScript array as follows

Suppose the VBArray object contains: (1, 2, 3), (4, 5, 6), (7, 8, 9). After translation, the JScript array contains: 1, 2, 3, 4, 5, 6, 7, 8, 9.

There is currently no way to convert a JScript array into a VBArray object.

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