QUOTE(Qball522 @ 6 Oct, 2008 - 11:12 AM)

Hello all
First I would like to say TY for this cool site. Much thanks to all the guys and gals on here, I have learned a few things already just from the 10-15 minutes I have been reading over some posts.
Ok on with my easy question, please no laughter I am very new to VB, I might even go as far to say I am new to programming in general.
I was wondering how one goes about declaring a variable throughout the program. Not sure the technical name for this I am sure there is one. Basically I want to set a variable and have different button clicks manipulate this number and store it again to be available for other interaction.
I know there has to be something out there, If at all possible I would like it to be as simple as it can get for this.
Thus far the only way I have found to pass a variable from one Sub to the next is to output the variable in a Label and then call on that Label in the next.
I am stumped... I watched a vid on a timer and he declared the variable outside any sub form and it worked... I tried it and same result, it works.... So i would like to say I am sorry for the dumbest question.
Thank you in advance.
You can declare a variable at the top of a frame or module like this:
Private nL as integer
and it is visible everywhere in that frame or module but not in other
frames or modules.
If you want to declare a variable to be visible everywhere in the
project, do this
Public nL as integer
If you have declared it in frmMain you can see it everywhere in
your project by writing
frmMain.nL