I don't understand this whole public variable thing. (New to programming and the VB book isn't clear).
If I create 4 forms, and I want one piece of info from each of those forms (a different piece of data from each) to appear in a 5th form, would I use a global variable?
For instance...form1 has a text box that a user would enter their name in, form2 has a test score that would calculate, I want both of these to appear in the form5 that would be designed as a Certificate and to replace a lbl.Caption property upon loading the form.
Is this when I would use a public variable? Where do I define this, on the form that first uses it? If I unload form1 and form2, would form5 still have received their data?
Please help.
If I create 4 forms, and I want one piece of info from each of those forms (a different piece of data from each) to appear in a 5th form, would I use a global variable?
For instance...form1 has a text box that a user would enter their name in, form2 has a test score that would calculate, I want both of these to appear in the form5 that would be designed as a Certificate and to replace a lbl.Caption property upon loading the form.
Is this when I would use a public variable? Where do I define this, on the form that first uses it? If I unload form1 and form2, would form5 still have received their data?
Please help.