7 Replies Latest reply on Feb 8, 2007 4:40 AM by Newsgroup_User

    scope of variables created with cfset var inside function

      Consider the attached code. In this example the local variable "x" only exists inside the test function. "Variables.x" does not exist - but in what scope does the local variable "x" exist? I don't see it in any of the scopes that are in the coldfusion livedocs that I can find.

      In all the documentation it reads that when you use a variable without a scope, so simply "x", it checks the "Variables" scope first.. but "x" is not in the variables scope in this example.