This is what I wanted to know if was avoidable. Like having a custom
cfargument type. Say there wasn't a struct argument value on the type
attribute of cfargument, I want to be able to create a function that
checks whether the value is a struct or not. And have it error when it's
not. Just like all the other type attribute values do.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Raymond Camden
Sent: Thursday, January 08, 2004 10:26 AM
To: [EMAIL PROTECTED]
Subject: RE: [CFCDev] Custom argument types


If you want to validate a number, use numeric. If you want numbers only
1 and higher, or some other logic, then you would want to use
type=numeric and then use additional checking.

ie

<cfarugment name="foo" type="numeric" required="true">

<cfif foo lte 0>
        <cfthrow ....>
</cfif> 


----------------------------------------------------------
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