Additional Array Function Descriptions

createarray Function

Description:

        Creates an empty array with specified length

Parameters:

        Parameter1: The number of elements stored in the Array

Returns:

        An array with specified # of empty elements

 

createtypedarray Function

Description:

        Creates a new array containing the specified values, where the values are all of the specified datatype.

Parameters:

        Parameter1: The datatype of the elements in the array (see Remarks)

        Parameter2: The number of elements stored in the Array

Returns:

        An array of the specified elementType

Remarks:

        The elementType is specified as the string name of the datatype.

Valid values are:

"object"

"string"

"double"

"single" or "float"

"int16" or "short"

"int32" or "int"

"int64" or "long"

"uint16" or "ushort"

"uint32" or "uint"

"uint64" or "ulong"

"boolean" or "bool"

"byte"

"sbyte"

"datetime"

 

setlen Function

Description:

        Modify the number of elements in the specified array.

Parameters:

        Parameter1: An array to resize

        Parameter2: The number of elements stored in the array

Returns:

        An array with specified # of elements

 

setat Function

Description:

        Sets the value in the specified array at the specified index.

Parameters:

        Parameter1: An array to modify

        Parameter2: A zero-based integer index        

        Parameter3: A value to set

Returns:

        Modified source array


See Also:

Expression Editor