• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

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#">


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint