
01-20-2012, 12:14 PM
|
 |
Fabulous Florist
Forum Leader * Guru *
|
|
Join Date: Feb 2004
Location: Austin, TX
Posts: 9,416
|
|
The answer is sort of complicated.
Inside of a method/property, Dim is always required and none of the access specifiers make sense, so let's ignore that.
Outside of a method/property, Dim is optional. It is generally preferred to use one of the access specifiers. It's easier to remember what "Private" means than it is to memorize the syntax rules for VB. But there are rules, and if you want to memorize them, here they are. as you'll see, sometimes Dim means Private, other times it means Public. If you want Private, use Private.
|
|