Skip to content

Can you name all the tags that create variables?

by Mike on October 22, 2007

As part of the development effort on my var-scoping tool I have been trying to identify all of the tags that can create variables.   I have yet to find a comprehensive listing of tags, so I’m hoping that people can leave comments here to expand the list.

Here’s my partial list to start with (yes I know it’s small), along with the parameter that specifies the variable name.  Please comment on my blog and add on any that I’ve missed.

cfloop:index
cfloop:item
cfquery:name
cfinvoke:returnvariable
cfdirectory:name
cffile:variable
cfparam:name
cfsavecontent:variable
cfform:name
cfstoredproc:name
cfprocparam:variable

From → varscoper

10 Comments
  1. cfhttp: result
    cfquery: result (creates a metadata struct)
    cfimage: name
    cfmail: query
    cffeed: name
    cffeed: query
    cfftp: name

    i’ll try to think of more later…

  2. Ben Smith permalink

    cfwddx:output
    cfobject:name
    cfsearch:name

  3. Rob Huddleston permalink

    Uh … you’re all missing the obvious:
    cfset:name

    Also, I don’t know how this would fit into the list, but you can create variables within a cfscript block.

  4. cfprocresult:name

  5. Maurice Crama permalink

    cfpop:name
    cfregistry:name
    cfreport:name

  6. I looked at the CF8 documentation and can’t find a ‘name’ parameter for cfstoredproc. I did find a result parameter, though.

    cfdbinfo:name
    cfdocument:name
    cfexecute:variable
    cfimage:name

  7. Robert-
    Good catch on cfstoredproc, not sure how I came up with that example, it looks like result is the correct parameter name

  8. James Morrow permalink

    cfindex
    cfldap

    Must be a few more to come up with.

  9. James Morrow permalink

    cfNTauthenticate:result

  10. Pat Santora permalink

    cfcollection:name
    cfpdf:name
    cfxml:variable
    cfzip:name

Comments are closed.