06-09-2004, 01:28 PM
when declaring a variable at the top of the code window, which is the better way as they both do the same thing.

Dim something as var
Private something as var


06-09-2004, 01:41 PM
Well, you might want to go for Private as you clearly know that that makes the variable only available in the current object (and Private clearly shows that it's not in a procedure of some sort) but, AFAIK, either is fine.
I tend to avoid using Dim unless I'm in a subroutine/function, since the scope doesn't seem as clear as Private/Public. :)

06-09-2004, 01:45 PM
thank you Iceplug.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum