between "global" and "public"

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

For example (in a module of an Access project):
Global xx as String
versus using
Public xx as String

When declaring similar variables to reference objects, is there any
difference between using the keyword global and the keyword public.
 
No real difference. Global is a holdover from early versions of VB/VBA.
Public is the more modern syntax, but in respect to function/purpose/usage
there is no difference.
 
No difference whatsoever. I can't remember which came first, but when they
switched to the other term, they kept the original in just to make it easier
to convert from version to version.
 
Back
Top