N
Neal Zimm
In an application that I'm developing I have dim'd quite a few variables in
Declarations. I'll admit some of it is not wanting to take the time to put
those vars that are used quite often in many macros within the sub
SubName(var list) parenthesis.
1) What advice can you offer on the pro's and cons of this technique? All of
the application's code is in ONE module.
2) I got 'bitten' when testing a macro where a var called Draw was dim'd as
integer in Declarations, had a good value > 0 in prior macros, but was 0 in
the macro I was testing.
Sure enough, I had dim'd it again, inadvertantly, also as Integer in the
macro being tested. Hence the 0 value, I guess. The QUESTION is, why did I
NOT get a duplicate Dim error?
Thanks.
Declarations. I'll admit some of it is not wanting to take the time to put
those vars that are used quite often in many macros within the sub
SubName(var list) parenthesis.
1) What advice can you offer on the pro's and cons of this technique? All of
the application's code is in ONE module.
2) I got 'bitten' when testing a macro where a var called Draw was dim'd as
integer in Declarations, had a good value > 0 in prior macros, but was 0 in
the macro I was testing.
Sure enough, I had dim'd it again, inadvertantly, also as Integer in the
macro being tested. Hence the 0 value, I guess. The QUESTION is, why did I
NOT get a duplicate Dim error?
Thanks.