Name
ArraySet
Synopsis
ArraySet(array, start, end, value
)
Initializes one or more elements in a
one-dimensional array, where start
is the
starting position, end
is the ending
position, and value
is the value to use.
The following example creates a one-dimensional array and populates
the first five elements with the string “Place
holder”:
<cfset MyArray = ArrayNew(1)> <cfset ArraySet(MyArray, 1, 5, "Place holder")> <cfdump var="#MyArray#">
Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.