You could do a type="any" and test the data type later. That's how
I've been faking overloading.

<cfargument name="descriptlistArray" type="any" required="false">
<cfif isArray(arguments.descriptlistArray)>
..

-- 
jon
mailto:[EMAIL PROTECTED]

Friday, August 16, 2002, 12:35:46 PM, you wrote:

BD> I have a cfc which has the following argument. The problem is that if I do 
BD> not pass it an array it throws an error that the value is not an array. How 
BD> do I make it optional to pass a value to this method?

BD> <cfargument name="descriptlistArray" type="array" required="false" default="">

______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to