Scope for non-scoped variables

2004-02-27 Thread Burns, John
If you don't assign a scope for a variable (cfset foo = 'bar'), is
that put into some kind of default scope in a standard cfm page?Is
there any way to dump all unscoped variables?Or, if you're in a
cfoutput query=blah and you want to reference an unscoped variable
that has the same name as one of the columns being output from that
query, is there some way to differentiate it?Thanks in advance.

 
John Burns
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Scope for non-scoped variables

2004-02-27 Thread John Beynon
Yep, It would be in the 'variables' scope, to view cfdump
var=#variables#

jb

-Original Message-
From: Burns, John [mailto:[EMAIL PROTECTED] 
Sent: 27 February 2004 15:21
To: CF-Talk
Subject: Scope for non-scoped variables

If you don't assign a scope for a variable (cfset foo = 'bar'), is
that put into some kind of default scope in a standard cfm page?Is
there any way to dump all unscoped variables?Or, if you're in a
cfoutput query=blah and you want to reference an unscoped variable
that has the same name as one of the columns being output from that
query, is there some way to differentiate it?Thanks in advance.

 
John Burns
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Scope for non-scoped variables

2004-02-27 Thread Raymond Camden
It is placed in the Variables scope. In CFMX, you can cfdump variables. If
you are in a query and want to refer to the variables scope, you would just
use variables.foo.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Scope for non-scoped variables

2004-02-27 Thread Jamie Jackson
That's the variables scope, which is dumpable in cfmx.

cfdump var=#variables#

Jamie

On Fri, 27 Feb 2004 10:21:18 -0500, in cf-talk you wrote:

If you don't assign a scope for a variable (cfset foo = 'bar'), is
that put into some kind of default scope in a standard cfm page?Is
there any way to dump all unscoped variables?Or, if you're in a
cfoutput query=blah and you want to reference an unscoped variable
that has the same name as one of the columns being output from that
query, is there some way to differentiate it?Thanks in advance.
 
John Burns



 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Scope for non-scoped variables

2004-02-27 Thread Pascal Peters
variables.foo
In cfmx: cfdump var=#variables#
In cf5 or earlier it is not possible to dump them.

 -Original Message-
 From: Burns, John [mailto:[EMAIL PROTECTED] 
 Sent: vrijdag 27 februari 2004 16:21
 To: CF-Talk
 Subject: Scope for non-scoped variables
 
 If you don't assign a scope for a variable (cfset foo = 
 'bar'), is that put into some kind of default scope in a 
 standard cfm page?Is there any way to dump all unscoped 
 variables?Or, if you're in a cfoutput query=blah and 
 you want to reference an unscoped variable that has the same 
 name as one of the columns being output from that query, is 
 there some way to differentiate it?Thanks in advance.

 John Burns
 
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Scope for non-scoped variables

2004-02-27 Thread Raymond Camden
 In cfmx: cfdump var=#variables#
 In cf5 or earlier it is not possible to dump them.

Don't forget that if you need to grab a set of variables, you can simply
make sure you use a structure to hold them. This is probably a good idea for
CFMX as well since variables may contain things you don't want (as it
contains _everything_).
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]