> Just out of curiosity .. If you just need to set a variable for
> one page and
> that variable only ever lives on that one page, which would be the better
> scope, Variables, or Request, or does it matter?

I would use either Variables or Request.

Variables if the var is completely local (that is you are not calling custom
tags that you want to make the variable accessable to) and request if you
want to make the variable accessable to other modules called within the
page.

HTH,
Duane Boudreau


>
> Todd Ashworth
>
> ----- Original Message -----
> From: "paul smith" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Wednesday, December 06, 2000 9:59 AM
> Subject: RE: Application.cfm
>
>
> | Right!  Your application.cfm should have the following for each
> | Request-scoped variable:
> |
> | <CFSET Request.MyVar1 = "foo">
> | <CFSET Request.MyVar2 = "bar">
> | etc
> |
> | That way your Request-scoped variables will contain a value and will be
> | available to each page.
> |
> | If the value of your variable changes from page to page, then you really
> | shouldn't put it in Request scope.
> |
> | best,  paul
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to