473,396 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

In A97, is there any notable difference in declaring variables using Public VS Global ?

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) ?
Oct 22 '07 #1
2 1658
MLH <CR**@NorthState.netwrote:
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
Oct 22 '07 #2
MLH
Thx, Matthias.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Mon, 22 Oct 2007 18:56:15 +0200, Matthias Klaey <mp**@hotmail.com>
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
--
Oct 22 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Larry Woods | last post by:
I have a site that works fine for days, then suddenly, I start getting ASP 0115 errors with an indication that session variables IN SEPARATE SESSIONS have disappeared! First, for background...
2
by: ross.oneill | last post by:
Hi, I am having trouble with a simple task of declaring a variable. Is this possible? Here is what I want to do. DECLARE start_date date; DECLARE end_date date; SET start_date =...
4
by: Ant | last post by:
Hi I'm quite new to C#. I've been playing around with variables declared outside the scope of a method with & without the static keyword. What difference does declaring variables in either fashion...
3
by: Peter Oliphant | last post by:
OK. I created a managed class. Now I want to create a global pointer to an instance of the class that the entire application can reference. Yet, when I do something like: MyManagedClass* ...
4
by: VB Programmer | last post by:
If I have a variable I want to share in my application what is the difference between just declaring a variable (Dim strMyVar as String) and using a session variable (Session("strMyVar"))? When...
28
by: Dennis | last post by:
I have a function which is called from a loop many times. In that function, I use three variables as counters and for other purposes. I can either use DIM for declaring the variables or Static. ...
10
by: jimmy | last post by:
Hi again, sorry for posting two questions so close together but im working on a school project which is due in soon and running into some difficulties implementing the database parts. I have the...
6
by: Richard Maher | last post by:
Hi, Now that I am aware that JS on a page in Frame A can directly call a function on a page in Frame B, I no longer have to continue with my frameB.location.reload() fudge in order to get some...
4
by: Sister Ray | last post by:
I've searched for a way to this in a lot of forums. Haven't found a solution for this, however I've found a work around. Declaring a public object and then adding the variables i want as members...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.