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

Setting Up Variables

Every variable must have both a name and a value. The value is the information you want to store for later use. The variable's name identifies the memory area where the information is stored. Naming the variable is important because you use the variable's name to retrieve the value stored there.

You assign a name and value to a ColdFusion variable by using <cfset>. The following is the basic form of a <cfset> instruction:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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