Thanks Charlie and James for the syntax help! :o) Chris
James Holmes wrote: > Define another cffunction inside your component, or use the script > without the function declaration (i.e. use the cffunction and > cfargument tags to declare the function then start the cfscript that > uses those arguments). Do the return with a cfreturn. > > On 12/17/06, Christopher Jordan <[EMAIL PROTECTED]> wrote: > >> Thanks Mark. Can you (or anyone really), show me the proper way to do this? >> >> Cheers, >> Chris >> >> Mark A Kruger wrote: >> >>> Chris, >>> >>> I'd say our problem isn't cfscript (which I use routinely inside of a >>> cffunction tag). You problem is that you are declaring a functions inside of >>> a function. >>> >>> -mark >>> >>> >>> -----Original Message----- >>> From: Christopher Jordan [mailto:[EMAIL PROTECTED] >>> Sent: Friday, December 15, 2006 9:34 PM >>> To: CF-Talk >>> Subject: CFScript inside a CFC >>> >>> Hi folks, >>> >>> I've got a CFC with a function in it that contains CFScript tags. Like this: >>> >>> <CFComponent Name="SomeName"> >>> <CFFunction Name="SomeFunction" Output="False" ReturnType="String"> >>> <cfscript> >>> function MyFunction(arg) { >>> return arg; >>> } >>> </cfscript> >>> </CFFunction> >>> </CFComponent> >>> >>> BlueDragon seems to have absolutely no problems with this, but my host's >>> CFMX box pukes over this. >>> >>> What's the deal? This is the first time I've tried to use CFScript tags >>> inside of a component. I was told by some members of my local CFUG that >>> writing code within CFScript tags whenever possible is faster (performance >>> wise), so I'm giving it a go. >>> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264267 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4