Hi all,
Just for clarification is there an advantage to using Private or Public as apposed to Dim for declaring variables?
By default:
a variable declared by Dim in Sub Process Globals is available to all modules.
a variable declared by Dim in Sub Globals is available only to the module in which it is declared.
A variable declared by Private in Sub Process Globals is only available to the module in which it is declared.
QUESTION 1: Is there an advantage to declare a variable using Private in Sub Process Globals over declaring the same variable using Dim in Sub Globals?
QUESTION 2: Is there a protocol to determine when and where to use these three declaration terms?
Regards Roger
Just for clarification is there an advantage to using Private or Public as apposed to Dim for declaring variables?
By default:
a variable declared by Dim in Sub Process Globals is available to all modules.
a variable declared by Dim in Sub Globals is available only to the module in which it is declared.
A variable declared by Private in Sub Process Globals is only available to the module in which it is declared.
QUESTION 1: Is there an advantage to declare a variable using Private in Sub Process Globals over declaring the same variable using Dim in Sub Globals?
QUESTION 2: Is there a protocol to determine when and where to use these three declaration terms?
Regards Roger