Easy VB question (variables)

Status
Not open for further replies.

Leaping Gnome

Ars Tribunus Angusticlavius
9,558
Subscriptor
OK, I'm sure this is an easy question but I can't remember how to do it. I'm doing a project that has multiple forms and I'm declaring a variable in the initial form as:
code:<HR>
Code:
 Public iVariable as Integer
In the same form I assign a value to it upon form_load and it's fine, it shows fine on that form. The problem I'm having is that it's not recognizing the variable value on any other forms. If I go to another form and try to show the value assigned in the form_load of the first form it is empty.

What am I doing wrong? What do I need to do to have the other forms be able to use the value assigned in the first one?
 
Status
Not open for further replies.