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

Variable Prefixes

ColdFusion supports many different variable types, and when referring to variables the type may be specified as a prefix in the format prefix.variable. Many developers believe the best practice is to always use prefixes, but prefixes actually are not required in every instance. The following variables do not need to have a prefix:

  • Query result variables (if in a <cfoutput> loop)

  • Local variables

  • CGI variables

  • File variables

  • URL variables

  • FORM variables

  • COOKIE variables

  • CLIENT variables


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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