whats more effective in declaring variables?

imdimonique

Member
Joined
Jun 3, 2004
Messages
10
i have read some snippets that uses fields in declaring their variables:

Whats more effective?
dim strVariable as string or Private strVariable as string?? :confused: or is it the same?
 

Paszt

Staff member
Joined
Jun 3, 2004
Messages
1,500
Location
Raleigh, NC - USA
Programming Experience
Beginner
It's the same. Both declare a variable of type string. If you don't specify the scope, the default of Private is taken as the scope.
 
Top Bottom