Your insertValues function requires that the argument, theValue, be an
instance of a CFC of type isValueInteger. You did not pass that. You passed
a string and a number. 

===========================================================================
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 9:08 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [CFCDev] Custom argument types
> 
> Ray forgive me for being dense this morning. What did I do 
> wrong below?
> 
> <cffunction name="isValueInteger" access="public" returntype="any">
>       <cfargument name="theValue" required="yes" type="any">
>       
>       <cfset var isValueInteger=isInteger(Argument.theValue)>
>       <cfset var isValueIntegerReturn=createObject('component',
> 'components.factory')>
> 
>       <cfreturn isValueIntegerReturn>
> </cffunction>
> 
> <cffunction name="insertValues" access="public" returntype="boolean">
>       <cfargument name="theValue" required="yes"
> type="isValueInteger">
> 
>       <cfset var insertValuesReturn=true>
> 
>       <cfreturn insertValuesReturn>
> </cffunction>
> 
> <cfoutput>#insertValues('fred')#</cfoutput>
> <cfoutput>#insertValues(1)#</cfoutput>
> 
> Both return not of type isValueInteger.
> 
> P.S. These functions are both in the factory CFC.
> 
> 
> ----------------------------------------------------------
> 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]

Reply via email to