At 06:02 PM 12/12/00 , you wrote:
>What happens within a custom cfml tag if the tag inadvertantly refers to or
>redefines a variable defined in the request scope?  For example, say, in
>application.cfm
>
><cfset request.datasource = "SomeDSN">
>
>
>Then, within a cfml tag, you have:
>
><cfset datasource = "AnotherDSN">

i believe this creates a LOCAL variable, and the request.variable would 
still be available.

So, if you were to issue the command:
<cfset newvar=datasource>

before the line:

<cfset datasource = "AnotherDSN">

you would get a cferror, if you want to access the request.datasource, 
you'd have to specify it.

<cfset newvar=request.datasource>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to