I'm making a program with multiple forms. When I change a variable's value in one form, it doesn't change in the rest. I declared the variable in a module, not just one form. How can I fix this?
"I declared the variable in a module, not just one form. How can I fix this?"
He probably defined it in BOTH the form and a module otherwise he would not have gotten beyond a "Variable Not defined" error.
Well, I'm sort of making a game, just to try some things out. On one form, you get to choose to have either the laser gun or the freeze ray. On the next, you go into battle (a different form). If you chose the laser gun (via clicking the "Laser Gun" command button) it changes the variable "Laser" to true, and in the battle form you can use the laser gun, and the same goes for the freeze ray.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.