Dim vs. Public
"Jamie Collins" skrev i melding
oups.com...
As far as I know there is no good reason for using a Public variable;
I've never used one myself. If you need to share a module-level
variable with another module, you can use a Property
Hi Jamie
Question of style, I think. I use public variables for things that are used
all over the app and that won't change "today" (=during the session).
Typically it's a username, a database address, environmental information, a
major choice in startup, ...
Best wishes Harald
|