Ok. In the case that I did have to declare a variable within a function with the same name as one that may have been declared in a parent document, how would I scope the function variable to only be used in the function? How would I refer to it in the function?
If I declared userID in a parent document And userID is declared in a function that is used n parent document. What would <cfset foo = '#userID#"> within that function use? the parent userID, or the function local userID? Or, in functions, should I create all local function variables as part of a structure that is named after the function? <cfset functionStruct = StructNew()> <cfset functionStruct.userID = "w/e" And then within that function, i refer to all function specific variables as 'functionStruct.myVariable' rather than just raw 'myVariable'. This way, it would guarantee uniqueness among variable names? -Jason -- online documentation: http://openbd.org/manual/ http://groups.google.com/group/openbd?hl=en
