Well, if you have vars that you need to protect completely you should use PRIVATE in templates. Other than the LOCAL limitation it works just like VFP methods/functions - the call stack will determine the level of variable inheritance...
+++ Rick ---
>>You should not use LOCAL in scripts or templates because those are actually translated into PRIVATEs. This is necessary for the code to run in CodeBlock since it won't be able to see LOCALs between the parsing of the function.
>>
>>LOCAL ARRAY will definitiely fail because there's no such thing as PRIVATE ARRAY, so just don't use LOCAL on arrays.
>
>I use local in script a lot in order to isolate the variable that I need in the script. If I understand correctly, I don't have to do it. Correct?
>
>Thanks for the info