<cfset var myLocallyScopedVariable = "test">

~Simon

Simon Horwith
Macromedia Certified Instructor
Certified Advanced ColdFusion 5 Developer
Fig Leaf Software
1400 16th St NW, # 500
Washington DC 20036
202.797.6570 (direct line)
www.figleaf.com



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 4:34 PM
To: CF-Talk
Subject: RE: Question: Var when writing components


> So - you don't have a danger of stuff leaking into the calling template,
> but inter-CFC action can go to heck if you forget to VAR scope.

Raymond,
        I know to use the VAR scope when using <cfscript>:

var myVariable = "test";

        But what about when using tags?  Is the scope actually VAR?  So
would it
be:

<cfset var.myLocallyScopedVariable = "test">

        I've been using the arguments for a local scope lately.  Probably
not the
correct way, eh?




Ben Johnson


______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to