ArrayNew

create a new array

Returns: array

Usage

ArrayNew( [ dimension [, synchronized ] ] )

Arguments

Argument Description Default
dimension
(number, optional)

Number of dimensions in new array: 1, 2, or 3

1

synchronized
(boolean, optional)

Number of dimensions in new array: 1, 2, or 3

true

Examples

create a new array, set the dimension

aNames = arrayNew(1);

// Implicit array notation
aNames = [];

See also