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

Lesson 3. Variables and Functions > Understanding Variables

Understanding Variables

Variables are the bread and butter of ColdFusion. They are used to store information such as names, products, values, information from a form, numbers, dates, times, and any other pieces of data that you will need to use later on. There's really no limit to what you can store in a variable. The information in a variable can be accessed any time it is needed. The variable is stored in memory, and when it is referenced by its name, ColdFusion retrieves that variable and outputs it, uses it in a function, or whatever you have specified that it do.

There are several types of variables in ColdFusion. All variables are stored in memory for as long as they are needed. Some are available on multiple templates and are stored in memory or a database or cookie in between requests; others persist for one request and then are removed from memory. Each different type serves its own purpose.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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