Sorry.  I was calling a function that called a function and in subfuction call 
I forgot add the argument, as a result the default value kinked in.  

Regarding the number of arguments.  I should probably be using <cfmodule> 
because the function is responsible for formating a block of content but UDF's 
is are little more flexible.


---------- Original Message ----------------------------------
From: Joe Rinehart <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date:  Thu, 2 Dec 2004 10:48:16 -0500

>Dwayne,
>
>Try using the <CFINVOKEARGUMENT> tag to pass the argument.
>
>It's cumbersome, and why most of us would call the method ECMA style
>instead of with cfinvoke/cfinvokeargument.  I.e.:
>
><!--- assume myObject is the object you've created --->
><!--- Rely on ordered params --->
><cfset myObject.wrap(arg1, arg2, arg3) />
><!--- Named params --->
><cfset myObject.wrap(wrapperImageType="jpg") />
>
>-joe
>
>
>On Thu,  2 Dec 2004 10:37:22 -0500, Dwayne Cole <[EMAIL PROTECTED]> wrote:
>> I created a UDF using <cffunction name="wrap">.  I set up the up arguments, 
>> approximately 30, and defined all the default values, one of which is 
>> <cfargument name="wrapperImageType" default="gif">.
>> 
>> UDF CALL
>> I call the function using <cfinvoke method="wrap" wrapperImageType="jpg">
>> 
>> PROBLEM:
>> The function is not changing the default value to the value that I pass. 
>> Wait, ONLY FOR THAT ONE ARGUMENT, all others work fine.
>> 
>> Is this a known bug.
>> 
>> 
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - New Atlanta
http://www.newatlanta.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185947
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