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

Chapter 6. Using ColdFusion Lists, Arrays, and Structures

Chapter 6. Using ColdFusion Lists, Arrays, and Structures

The variables you learned about in Chapter 2, “Variables and Variable Scope,” are sometimes referred to as scalar variables because each variable can store one and only one value. Scalar variables are fine for many programming purposes, but eventually you'll be confronted with a situation in which it is more programmatically efficient to store multiple values in the same variable. ColdFusion supports storage of multiple values by means of lists, arrays, and structures. Each is a type of memory construct that enables you to store and retrieve more than one value, but the internal workings of each can vary greatly. Fortunately, each also has its own supporting class of CFML functions to help you create and manipulate them.

In this chapter, you'll learn how to

  • Create ColdFusion lists and handle them with CFML list functions

  • Build ColdFusion arrays and manage the data inside them

  • Work with ColdFusion structures, including those that are intrinsic to the ColdFusion environment


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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