scope precedence is local,cgi,file,url,form,cookie,client (p 25
documentation Dev. Web App with CF)
application,session,server and request variables must be explicitly scoped.
I guess you will have check using isdefined starting with variables.myvar
and work your way up.
----- Original Message -----
From: "Peter Theobald" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Sunday, October 22, 2000 3:05 PM
Subject: Determining what scope a variable resolves to?
> I have some code (that I inherited) that I am trying to debug. I cannot
tell what scope a particular variable is resolving to. The variable does not
have an explicit scope attached to the name, and there are many variables of
the same name in different scopes alive at that point.
>
> How do I tell what scope a variable resolves to? Is there a function?
> The variable's value is (incorrectly) blank so outputting it doesn't help
me.
>
> At 10:53 AM 10/22/00 -0500, Eric Dawson wrote:
> >this what i do to play with encrypted custom tag output.
> >
> >== index.cfm
> ><cf__parseoutput>
> > <cfmodule template="sometemplate.cfm">
> ></cf__parseoutput>
> >
> ><cfoutput>content</cfoutput>
> >== end
> >
> >== _parseoutput ==
> ><CFIF ThisTag.ExecutionMode is 'end'>
> > <cfset caller.content = ThisTag.GeneratedContent>
> > <CFSET ThisTag.GeneratedContent = "">
> ></cfif>
> >== end
> >
> >From: "Jim McAtee" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: CF-Talk <[EMAIL PROTECTED]>
> >Subject: Re: stripping output from Custom Tag
> >Date: Sat, 21 Oct 2000 17:28:33 -0600
> >
> > > Im using a tag from the Allaire Developers Exchange , it is being
called
> > > using CFMODULE. This tag outputs a string of images, for some reason
> >(bug
> >I
> > > believe) after the images there is a </tr></table> being written out
and
> >it
> > > is screwing up my page layout. Is there some way I can strip this
off,
> >Im
> > > trying to get a demo up and running and probably wont have the
> >un-encrypted
> > > source of this thing until probably Tuesday.
> >
> >You could do this with a regex, but if the tag invariably tacks on that
> >exact string, then it would be easier to just chop it off.
> >
> ><cfset s = "Some output string </tr></table>">
> ><cfset s = Left(s, Len(s) - 13)>
> >
> >Jim
> >
>
>---------------------------------------------------------------------------
---------------------
> >Archives: http://www.mail-archive.com/[email protected]/
> >Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send
a
> >message with 'unsubscribe' in the body to
[EMAIL PROTECTED]
> >
> >_________________________________________________________________________
> >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> >
> >Share information about yourself, create your own public profile at
> >http://profiles.msn.com.
> >
>
>---------------------------------------------------------------------------
---------------------
> >Archives: http://www.mail-archive.com/[email protected]/
> >Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send
a message with 'unsubscribe' in the body to
[EMAIL PROTECTED]
>
>
> --------------------------------------------------------------------------
-
> Peter Theobald, Chief Technology Officer
> LiquidStreaming http://www.liquidstreaming.com
> [EMAIL PROTECTED]
> Phone 1.212.545.1232 x204 Fax 1.212.545.0938
>
> --------------------------------------------------------------------------
----------------------
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send
a message with 'unsubscribe' in the body to
[EMAIL PROTECTED]
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]