Dave Unger wrote on 4/13/2011 :
I would expect to get a
compile error , but I don't. It thinks I'm referencing List2.nam3.
On a large application this could be a real nuisance to locate.
And this is precisely why Ron suggested you preface the var with its
enum name:
List2.nam3
This is a fully qualified ref to the var nam3. Specifying its enum name
is just good programming practice. It not only makes your code easier
to understand, there's also no ambiguity as to which nam3 var you're
refering to. Not to mention the added benefit of using Intellisense
while coding, there's really no reason to not preface the var with its
enum name.
--
Garry
Free usenet access at
http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc