<cfset var LOCAL = StructNew()> or {} if on CF8.

Then reference all your local vars as LOCAL.queryName etc.

Adrian
Building a database of ColdFusion errors at http://cferror.org/

-----Original Message-----
From: Brian Dumbledore
Sent: 03 November 2008 19:50
To: cf-talk
Subject: variables declaration in udfs


I have a udf, to force a query in the udf to be local, I jsut do a <cfset
var qname = ""> before I do the cfquery, I have a bunch of queries and
variabels in the udf, is there no other easier way than to put as many
cfsets as there are variables???


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314786
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to