MACROMEDIA COLFUSION MX 7-CFML Reference page 369

Cfml reference
Hide thumbs Also See for COLFUSION MX 7-CFML:
Table of Contents

Advertisement

cfreturn
Description
Returns result values from a component method. Contains an expression returned as result of the
function.
Return value
An expression; the result of the function from which this tag is called.
Category
Extensibility tags
Syntax
<cfreturn
expr>
See also
,
cfargument
cfcomponent
; "Creating reports with the ColdFusion MX 7 reporting" in Chapter 32, "Creating
cfproperty
Reports for Printing," in ColdFusion MX Developer's Guide
History
ColdFusion MX: Added this tag.
Attributes
Attribute
expr
Usage
This tag is equivalent to a
argument. To return more than one value, populate a structure with name-value-pairs, and return
the structure with this tag.
To access the result value from this tag, you use the variable scope that is the value of the
tag
cfinvoke
returnVariable
You can code a maximum of one
For example code, see Chapter 10, "Building and Using ColdFusion Components" in ColdFusion
MX Developer's Guide.
Example
<cfcomponent>
<cffunction name="getEmp">
<cfquery name="empQuery" datasource="ExampleApps" >
SELECT FIRSTNAME, LASTNAME, EMAIL
FROM tblEmployees
</cfquery>
<cfreturn empQuery>
,
cffunction
Req/Opt
Default
Required
statement within a
return
attribute.
cfreturn
,
,
cfinvoke
cfinvokeargument
Description
Function result; value of any type.
cfscript
tag within a function.
,
,
cfobject
tag. It accepts one return variable
cfreturn
369

Advertisement

Table of Contents
loading

This manual is also suitable for:

Colfusion mx 7 - installing and using coldfusion mx

Table of Contents