Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with Declaring an Array

Status
Not open for further replies.

PeasNCarrots

Programmer
Jun 22, 2004
73
US
Is it possible to make an Array a const so I can use it throught my Module? The values within the array never change so I don't want to keep setting them within each procedure.
 
The scope of the array will be determined on where the array is declared. You can make it global to the application, known only within a standard code module, known only with a specific form object, or only within a single procedure.

What is the desired scope of this array?

Good Luck
--------------
To get the most from your Tek-Tips experience, please read FAQ181-2886
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
The declare the variables in the declarations section of that standard code module. Initialize the values within a public sub of that module, which you need to call at some point during the start-up process.

Good Luck
--------------
To get the most from your Tek-Tips experience, please read FAQ181-2886
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Your welcome.

Good Luck
--------------
To get the most from your Tek-Tips experience, please read FAQ181-2886
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top