Creates a parameter definition within a component definition. Defines a function argument. Used within a cffunction tag.
<cfargument name="..." type="..." required="..." default="..." ...>
cfcomponent, cffunction, cfinvoke, cfinvokeargument, cfobject, cfproperty, cfreturn
This tag must be positioned before any other tags within the cffunction tag.
Arguments that are passed when a method is invoked can be accessed from the method body in the following ways:
#myargument#
(This example accesses the argument myargument.)
#arguments[1]#
(This example accesses the first defined argument in the cffunction)#arguments.myargument#
(This example accesses the argument myargument in the array)ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6
Comments are no longer accepted for ColdFusion MX. ColdFusion 8 is the current version.
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/6/CFML_Reference/Tags-pt15.htm
Comments
rsogaard said on Aug 30, 2002 at 4:31 PM : chip42 said on Oct 4, 2002 at 3:55 PM :