Yup -

In the component function, use <cfargument> for your arguments and set the 
default values there.
<cfargument name="thearg" default="defaultvalue">

Then, in your <cfinvoke> block you can use <cfinvokeargument> to override 
the defaults as needed.

-- Josh


----- Original Message ----- 
From: "Scott Stewart" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Tuesday, May 09, 2006 1:17 PM
Subject: Component question


> Hi all,
>
>
>
> Is there a way to set default parameters in a ColdFusion component, that 
> can
> be overridden if needed by the cfinvoke?
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240015
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to