First, try putting </cffunction> at the end
------------------------------------------- Paul Johnston PJ Net Solutions Ltd http://www.pjnetsolutions.com [EMAIL PROTECTED] +44 (0)7866 573013 > -----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]
