Worth mentioning that you can use custom tags in a recursive manner. I have several recursive tree generators on various versions of CF that use custom tags, UDFs and CFC methods. custom tags and CFFUCTION-based UDFs (including CFCs) can have CFQUERY tags in them, although if you're making a query within a recusive call, you're just asking for performance issues. Might be unavoidable for certain situations, but it's just as bad as putting a CFQUERY inside a loop.
barneyb --- Barney Boisvert, Senior Development Engineer AudienceCentral [EMAIL PROTECTED] voice : 360.756.8080 x12 fax : 360.647.5351 www.audiencecentral.com > -----Original Message----- > From: Paul Hastings [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 09, 2003 1:33 PM > To: CF-Talk > Subject: Re: recursion in cold fusion ( was RE: Creating a list with > infinite groupings and indents ) > > > > First and foremost, we can't run queries inside of <cfscript> tags. > Bummer. > > easy enough with a wrapper function. > > > Second, even if the query issue were resolved (and if you've > got ideas for > > work-arounds, I'd love to hear them), you've now got variable scope > issues. > > A variable declared in a CFMX page is global (correct me if I'm > wrong) to > > you can make variables private to a function, at least as i understand it. > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

