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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dim a variable so it's available to the whole Class

Status
Not open for further replies.

sfunk

Technical User
Jan 22, 2002
107
0
0
US
Hello,

I would like to Dim a variable so it is available to the whole Class not just a Function.

Steve
 
you could try in the Declarations section of the class, use Public

Option Explicit

Public TheVariable as Integer
Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
If you add a public variable to the class declarations, its visible to everyone. Make it private and it will be visible to all functions within the class.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top