I want to transfer variables from one form to another keeping the values, is there a better way than using text boxes to do it?
Printable View
I want to transfer variables from one form to another keeping the values, is there a better way than using text boxes to do it?
A much better way!
Place the following in a module:
Change the information accordingly. But all you have to do is where your telling the form to pull the vars value, use the vars name rather than the text box that I assume you're using now.Code:Global myVar as String 'or whatever you want it to be called
no i posted before i tried(thank god i did, i have over 50 variables probly to transfer back and forth)
i tried dim in a module but thank you for helping
may be you can keep it in the registry? with the 2 simple function bundle with VB. SaveSetting and GetSetting
i know about using the registry, but for what I am doing the global declarations is MUCH better(you have no idea how happy it made me to find it THIS easy to do so(yahoo)(id use exclamation point but my one - four keys above the keys are broken :( quite annoying, not that you cared, hehehehehe)
If the four key is broken, then may be you can use the underscore _ to join them together, so end up you still can make use the registry to store all your variable. :)
i meant all the keys(one, two, three, and four) are broken not just four(i can use the numpad for numbers(quite annoying in VB), and char map for the at sign etc, but relaly annoying)
anything this could be beyond hardware?