In A97, is there any notable difference in declaring variables using Public VS Global ?
am 22.10.2007 18:43:05 von MLH
I'm wondering about Public VS Global kewords that can be used in
procedures inside global modules saved/viewd in the modules tab
of the database window. Is it pretty much the same thing to use one
or the other when declaring a global variable? If not, what is (are)
the major difference(s) ?
Re: In A97, is there any notable difference in declaring variables using Public VS Global ?
am 22.10.2007 18:56:15 von Matthias Klaey
MLH wrote:
> I'm wondering about Public VS Global kewords that can be used in
> procedures inside global modules saved/viewd in the modules tab
> of the database window. Is it pretty much the same thing to use one
> or the other when declaring a global variable? If not, what is (are)
> the major difference(s) ?
It is exactly the same thing. The "Global" keyword is available for
backward compatibility only, it was changed from "Global" in Access
1.x/2.0 to "Public" in Access 95 and later. So it may be better to use
"Public" instead of "Global" in view of the future.
HTH
Matthias Kläy
--
www.kcc.ch
Re: In A97, is there any notable difference in declaring variables using Public VS Global ?
am 22.10.2007 18:57:48 von MLH
Thx, Matthias.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Mon, 22 Oct 2007 18:56:15 +0200, Matthias Klaey
wrote:
>It is exactly the same thing. The "Global" keyword is available for
>backward compatibility only, it was changed from "Global" in Access
>1.x/2.0 to "Public" in Access 95 and later. So it may be better to use
>"Public" instead of "Global" in view of the future.
>
>HTH
>Matthias Kläy
>--