On Mar 19, 2004, at 3:57 PM, Barney Boisvert wrote:
It seems to me that if you're declaring an argument, you'd always specify a default, because you want that variable to be there.

No, you want the <cfargument> tag present so that if the argument is supplied, CF will still do type checking (and for documentation purposes):


<cfargument name="foo" type="numeric" required="false" />

        <cfif structKeyExists(arguments,"foo")>
                <!--- we know it is numeric --->
        <cfelse>
                <!--- argument foo was not supplied --->
        </cfif>

Regards,
Sean

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.


CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to