Ahhhhh! Ok.

Adam Wayne Lehman
Web Systems Developer
Johns Hopkins Bloomberg School of Public Health
Distance Education Division


-----Original Message-----
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 24, 2003 11:35 AM
To: CF-Talk
Subject: Re: Protecting scope of <cffunction> variables

Adrocknaphobia Jones wrote:
> Any chance this will ever be possible?
> 
> <cffunction ...>
>       <cfargument ...>
>       <cfscript>
>               var x = 1;
>               var y = 2;
> 
> It always seems to throw the "vars need to specified at the top"
error,
> since <cfscript> tag comes first. I'm not really sure why 'var' is
even
> a part of cfscript seeing how it can never be used.

It can be used:
<cfscript>
function blahblah() {
        var x = 1;
        .....

Jochem


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to