User Guide

Table Of Contents
22 CFML Quick Reference
ColdFusion Tag-Specific Variables
A number of ColdFusion tags return data as variables. For
example, the CFFILE tag returns file size information in the
FileSize variable, referenced as CFFILE.FileSize.
The following tags return data that can be referenced in vari-
ables:
CFCATCH
CFDIRECTORY
CFERROR
CFFILE
CFFTP
CFHTTP
CFINDEX
CFLDAP
CFMAIL
CFPOP
CFQUERY
CFREGISTRY
CFSEARCH
CFSERVLET
CFSTOREDPROC
ColdFusion query variables
Any ColdFusion tag that returns a query object supports the
following variables:
queryname.CurrentRow
queryname.RecordCount
queryname.ColumnList
Where queryname is the value of the NAME attribute in each
tag.
CFCATCH variables
Within a CFCATCH block, the properties of the active excep-
tion can be accessed as variables:
CFCATCH.Type
CFCATCH.Message
CFCATCH.Detail
CFCATCH.ErrNumber
CFCATCH.NativeErrorCode
CFCATCH.SQLState
CFCATCH.LockName
CFCATCH.LockOperation
CFCATCH.MissingFileName
CFCATCH.TagContext
CFCATCH.ErrorCode
CFCATCH.ExtendedInfo