Answer» Hello,
I would like to know how to set a variable that can be read by all of my forms in vb.net, meaning that my form 1 could set it as variable = 1 and the form 2 would show it on a label. HOPE this is CLEAR if you need anything else please ask.
Thanks
Al968Create a module and under the "General Declarations" insert your variable declaration. Global variables must be declared outside any subs or functions. Globals can be strange animals, better to pass the data on a sub or function call.
8-)
The programming board has not seen this much action since Bill GATES realized he could profit off a product named BASIC.Thanks,I got it Now that I knew that the variable was called a variable I googled and FOUND many websites explaining how to do it.
Al968
|