• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Day 15. Using Lists, Structures, and Arr... > Creating ColdFusion Lists

Creating ColdFusion Lists

There are several ways to package values into a list. You can hard-code them, or actually type in the names of the variables you want to package. You can also use a query to fill a list with values, or you can use data passed from a form page. Each of these methods has its associated tags and techniques.

  • When you want to define a new list, such as the siblings list in the previous section, use <CFSET>.

  • When you want to add a value to an existing list, use <CFSET> with the ListAppend() function.

  • When you want to create a list from the results of a query, use the ValueList() function.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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