Better yet, just define the function outside the loop (top of the template?) and then just call it from inside your loop.
---------------------------------------- From: "Don L" <[email protected]> Sent: Wednesday, June 10, 2009 2:39 PM To: "cf-talk" <[email protected]> Subject: Re: CFfunction within a query output Peter, awesome, as you correctly pointed it out, the complex data type was the culprit, problem resolved. Also, good catch on the function inside the loop, I've set up a flag to ensure it runs only once, so, that's ok; also initially thought the cf8 engine would run it only once but that could be totally wrong for expecting too much from cf8... Many thanks. Don ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323373 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

