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.
True, on successful completion.
ArraySet(array, start_pos, end_pos, value)
New in ColdFusion MX: this function can be used on XML objects.
<h3>ArraySet Example</h3> <!--- Make an array ---> <cfset MyNewArray = ArrayNew(1)> <!--- ArrayToList does not function properly if the Array has not been initialized with ArraySet ---> <cfset temp = ArraySet(MyNewArray, 1,6, "Initial Value")> <!--- set some elements ---> <cfset MyNewArray[1] = "Sample Value"> <cfset MyNewArray[3] = "43"> <cfset MyNewArray[6] = "Another Value"> ...