Contents

arraySet

Description

In a one-dimensional array, sets the elements in a specified
index range to a value. Useful for initializing an array after
a call to ArrayNew.

Usage Syntax

arraySet(array array,number start_pos,number end_pos,any value): boolean

Return Information

Return Type
boolean

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.

Name Type Required Description
array array Yes Name of an array.
start_pos number Yes Starting index position of range to set.
end_pos number Yes Ending index position of range to set. If this value is greater than array length, Railo adds elements to array.
value any Yes Value to which to set each element in the range.

category Categories: