you try running it?

2 problems I think:

* #preservesinglequotes(functionThatreturnsString())# breaks
* the cftry/catch doesn't catch the exception that the above breaks

Justin

-----Original Message-----
From: Douglas Humphris [mailto:[EMAIL PROTECTED]]
Sent: 14 February 2003 16:28
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] this a bug?


Pass. Can't think of a good reason why it throws an error. Can anyone else
explain this?
D

-----Original Message-----
>From: Justin MacCarthy [mailto:[EMAIL PROTECTED]]
Sent: 14 February 2003 16:24
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] this a bug?



Would everyone consider this code valid? Why does section 2 not work??

In fact Why does this throw an error

<!--- section 1 --->
<cfoutput>

<cftry>
                                <cfset x = test() />
                                        #preservesinglequotes(x)#
                                        <cfcatch>error</cfcatch>
</cftry>


<!--- section 2 --->
<cftry>

                                #preservesinglequotes(test())#
                                <cfcatch>error</cfcatch>
</cftry>


</cfoutput>



<cffunction name="Test">
        <cfset str = "I wan't Eating the CAT!" />
        <cfreturn str />
</cffuction>


Might be a friday thing....champers and pizza for lunch..

Thanks

--
** 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]





-- 
** 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