dooh.
-----Original Message----- From: Raymond Camden [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 11:17 AM To: CF-Talk Subject: RE: CFC property type validation problem int is not a recognized type. You mean numeric. Because it's not recognized, it assumes "int" is a CFC. ======================================================================= Raymond Camden, ColdFusion Jedi Master for Macromedia Email : [EMAIL PROTECTED] Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: Craig Fisher [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 11, 2002 5:09 PM > To: CF-Talk > Subject: CFC property type validation problem > > > all: > > I am having a problem with a CFC... I keep getting the error > > The argument CATEGORYID passed to function linkCategory() is > not of type > int. > If the component name is specified as a type of this > argument, the reason > for this error might be that a definition file for such > component cannot be > found or is not accessible. > > 28 sure looks like an int to me but the CFC just seems to > swear it is not. > Does anyone have any clues??? The following code shows what > I am trying to > do. > > > > On the calling page: > <!--- in the object is instantiated well above here ---> > <cfset bLinked=request.cfc.Category.linkCategory(28, 36, request.dsn)> > > > > This is the actual CFC: > <!---Category.cfc---> > <!--- Stuff omitted ---> > <cffunction access="public" displayname="linkCategory" > hint="Link a Category" name="linkCategory" output="yes" > returntype="boolean"> > <cfargument name="CategoryID" required="Yes" type="int" > hint="The Category ID"> > <cfargument name="ParentID" required="Yes" type="int" > hint="The Category ID of the new Parent"> > <cfargument name="DSN" required="Yes" type="string" > hint="The datasource name"> > <cfoutput> > #ARGUMENTS.CategoryID#<br> > #ARGUMENTS.ParentID#<br> > #ARGUMENTS.dsn#<br> > </cfoutput> > <!--- <cfstoredproc datasource="#ARGUMENTS.dsn#" > procedure="Hierarchy_InsertCategoryLink"> > <cfprocparam cfsqltype="CF_SQL_INTEGER" type="In" > value="#ARGUMENTS.CategoryID#" dbvarname="CategoryID"> > <cfprocparam cfsqltype="CF_SQL_INTEGER" type="In" > value="#ARGUMENTS.ParentID#" dbvarname="ParentID"> > </cfstoredproc> ---> > <cfreturn True> > </cffunction> > > Craig Fisher > Macromedia Certified Instructor > Macromedia Certified Advanced ColdFusion 5 Developer > [EMAIL PROTECTED] > 801-791-8251 > > ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

