Hello, I am new to VB, but have experience in a lot of other languages. I am having trouble correctly declaring a global variable in VB. I get a value in one form and i later want to use that same value in another form. I thought i could just use:
Public fullpath as String
at the top of the form page and then continue to use this variable anywhere else i wanted in the project, but that isn't the case. Does a global variable have to be declared in a module instead of a form? I know this is probably very easy to do, but i'm having trouble with it. Any help is greatly appreciated.
0 · ·