New to VB and using Visual Studio 2008. Trying to declare variables and arrays that can be used outside a specific procedure. I want to make the variable universally available within the program. I think I know how to do the declaration, I just can't find where in the code window to put it. Can't use PUBLIC within a procedure right?
OldQBasicer
0
Light Poster
Recommended Answers
Jump to PostI put all my global declarations, constants and defined types in a module.
Jump to PostVB's IDE Menu>Project>Add Module
Good Luck
All 6 Replies
SCBWV
71
Junior Poster
OldQBasicer
0
Light Poster
vb5prgrmr
143
Posting Virtuoso
SCBWV
71
Junior Poster
OldQBasicer
0
Light Poster
SCBWV
71
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.