> I want more control on what happens when there is an error, for > example I want to have a choice when I output something like > #insignicantVariable# to display > > [Error] to the user, nothing or fail. > > #obj.fnOutput( variables, 'firstName', 'fail' )# > > Now tell me, how stupid is this and why?
I don't think it's stupid. I can see it being pretty useful actually. The only issue is you're trying to output the result of the function call but you declared it to return void - I think you need to have returntype="string" and <cfreturn "[Error]" /> / <cfreturn "" /> as appropriate. --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
