The following definition  is taken from the Fusebox list and the author is
Douglas M. Smith, [EMAIL PROTECTED]
 I hope he doesn't mind me reposting this since he put it so well ;-)

----------------------------------------------------------------------------
-

OK, I know everyone is going to hate me, but I think I can give the most
concise definition of  a request variable yet.  Think of it as a challenge
in English and efficiency of communication!

Here's my one line definition of request variables:

Request variables and local variables (scope = VARIABLES) act and can be
treated in EXACTLY THE SAME WAY, with the exception that request variables
can go across the <CFMODULE/CUSTOM TAG> boundary, while local variables are
"isolated" to the page and <CFINCLUDE>.

Local variables: die with the page request
Request variables: die with the page request

Local variables:
        available in all <CFINCLUDED> code
Request variables:
        available throughout the cascading chain of <CFINCLUDE> AND
<CFMODULE> code.

If you know how local variables work, then you know how request variables
work!

STOP THINKING SO HARD!

(but please do yell at Allaire for the lack of documentation that caused
your headache!)

================================================
Douglas M. Smith - Database Architect/Web Integration Specialist
TeraTech - Tools for Programmers(tm)
[EMAIL PROTECTED]



----- Original Message -----
From: "Dempsey, Timothy F." <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, December 06, 2000 8:15 AM
Subject: What are the recognized CF variable scopes?


> Folks,
>
> I have seen a mention on this list in the last couple of days something
> called the request scope for CF variables. I had never heard of it. Until
> now I had only heard of the Application, Client, Session, Form, Query, and
> Attributes scopes as well as the local variable scope.
>
> Now I have a few questions:
>
> 1.) What is the Request scope?
> 2.) Are there other scopes besides that and the ones I listed above?
> 3.) Where are things like this documented? I don't see it in the CF
manuals
> or help files or in Ben Forta's books.
>
> Thanks,
>  -- Tim Dempsey
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        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