Declarations variables, Dim, some guidance please
- From: Neal Zimm <nealzimm@xxxxxxxxx>
- Date: Mon, 15 Aug 2005 15:00:18 -0700
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.
--
Neal Z
.
- Follow-Ups:
- RE: Declarations variables, Dim, some guidance please
- From: Jim Thomlinson
- Re: Declarations variables, Dim, some guidance please
- From: Bob Phillips
- Re: Declarations variables, Dim, some guidance please
- From: Jake Marx
- Re: Declarations variables, Dim, some guidance please
- From: JE McGimpsey
- RE: Declarations variables, Dim, some guidance please
- Prev by Date: Pasting Blanks using a macro
- Next by Date: Re: Collapsing Code
- Previous by thread: Pasting Blanks using a macro
- Next by thread: Re: Declarations variables, Dim, some guidance please
- Index(es):
Relevant Pages
|