August 2001
Intermediate to advanced
976 pages
38h 8m
English
ArraySet
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 temp = ArraySet(MyArray, 1, 5, "Place holder")> <CFLOOP INDEX="Element" FROM="1" TO="#ArrayLen(MyArray)#"> <CFOUTPUT>Element #Element#: #MyArray[Element]#<BR></CFOUTPUT> </CFLOOP>
Read now
Unlock full access