I know that. Regarding item 4.
"You could also make a CFC, SpecialNumber. When you create it, you pass
in the #. The CFC handles all the silly checking."
cfc2
<cfcomponent>
<cffunction name="specialNumber" access="public"
returntype="???">
<cfargument name="theNumber" required="yes"
type="numeric">
<cfset var specialNumberReturn=''>
<cfscript>
if(arguments.theNumber gt 5) {
specialNumberReturn=true;
} else {
throw('This CFC will self destruct
in...');
}
</cfscript>
<cfreturn ?????>
</cffunction>
</cfcomponent>
" If another CFC wants to use a method and require that type of value,
then you would just use type="SpecialNumber" for your cfargument tag.""
cfc1
<cfcomponent>
<cffunction name="yaddaDoodle" access="public"
returntype="boolean">
<cfargument name="theSpecialNumber" required="yes"
type="specialNumber">
....
</cffunction>
</cfcomponent>
How does CFC 1 know where to look for CFC 2?
----------------------------------------------------------
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]