CFARGUMENT

"-->
 <cfargument          name="argument name"          type="any"          required="YES or NO"          default="default argument value"> 

Description

Used within the CFFUNCTION tag, this creates a parameter definition within a component and defines a function argument. This tag must be the first tag in a page.

Attributes

name (Required)

Name for the argument.

type (Optional)

This is the data type of the argument which can be anything. Some examples are any, array, binary, Boolean, date, numeric, query, string, struct, uuid, variableName, and a component name.

required (Optional)

Default: No. Determines whether the parameter is required to execute the component method.

default (Optional)

If no argument is passed, specifies a default argument value. When using this attribute, the required attribute must be set to No or not specified.



Inside ColdFusion MX
Inside Coldfusion MX
ISBN: 0735713049
EAN: 2147483647
Year: 2005
Pages: 579

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net