Can you name all the tags that create variables?
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
10 Comments
Comments are closed.
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…
cfwddx:output
cfobject:name
cfsearch:name
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.
cfprocresult:name
cfpop:name
cfregistry:name
cfreport:name
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
Robert-
Good catch on cfstoredproc, not sure how I came up with that example, it looks like result is the correct parameter name
cfindex
cfldap
Must be a few more to come up with.
cfNTauthenticate:result
cfcollection:name
cfpdf:name
cfxml:variable
cfzip:name