The docs have the return type as listed as "boolean", I don't know if "bool"
works or not, but try changing it.

Ade

-----Original Message-----
From: Giles Roadnight [mailto:[EMAIL PROTECTED]
Sent: 21 March 2003 12:16
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] CFC return variable tpye problem


I have this code in a CFC:

        <cffunction name="saveAddressBook" access="remote"
returntype="bool">
                <cfargument name="userID" type="numeric" required="true">
                <cfargument name="iconID" type="numeric" required="true">
                <cfargument name="Name" type="string" required="true">
                <cfargument name="mobileNumber" type="string"
required="true">

                
                <cfreturn true>
        </cffunction>

I know that this doesn't actually do very much but I have got rid of all of
the includes to make sure that they were not causing the problem.

When I call this function from a flash movie I get the error 

"The value returned from function saveAddressBook() is not of type Bool."

This has really stumped me as I am clearly returning true.

Anyone got any ideas with this?


Giles Roadnight
http://giles.roadnight.name


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to