AmericaFan
asked on
VB6 Global Variables being used in classes and forms
I am creating an N-Tier Application in VB6. I have several forms, a module and 10 classes. Each class instantiates a dataaccess class that connects to my Database.
In my module, I have several global variables declared that I use in my classes and forms. Is it OK to use the globes in the classes and the forms, or should I declare the global variables in my form, use them only in the forms, and pass the info in the global’s through my LETS AND GETS that are in the classes?
My code is compiled into a installation package after I create a DLL from the classes and module.
In my module, I have several global variables declared that I use in my classes and forms. Is it OK to use the globes in the classes and the forms, or should I declare the global variables in my form, use them only in the forms, and pass the info in the global’s through my LETS AND GETS that are in the classes?
My code is compiled into a installation package after I create a DLL from the classes and module.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER