Err, did you really use the code below? Because you need to use <cffunction> to wrap the code, not <cfargument>.
=========================================================================== Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) Email : [EMAIL PROTECTED] Blog : www.camdenfamily.com/morpheus/blog Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Bryan F. Hogan > Sent: Thursday, January 08, 2004 8:26 AM > To: [EMAIL PROTECTED] > Subject: RE: [CFCDev] Custom argument types > > I tried doing something like that but couldn't get it to > work. What I did was something similar to the below example. > But couldn't get it to work. Can you show an example? > > <cfargument name="isInteger" access="public" returntype="boolean"> > <cfargument name="theValue" required="yes" type="any"> > > <cfset var isIntegerReturn=udfIsInteger(Argument.theValue)> > > <cfreturn isIntegerReturn> > </cfargument> > > <cfargument name="insertValues" access="public" returntype="boolean"> > <cfargument name="theValue" required="yes" type="isInteger"> > > <cfset var insertValuesReturn=true> > > <cfreturn insertValuesReturn> > </cfargument> > > <cfset insertValues('Fred')> > > > ---------------------------------------------------------- > 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] > ---------------------------------------------------------- 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]
