I've read several places that global variables, while useful, can also eat
memory and possibly cause a noticable depreciation in speed. After working
to optimize all my latest code to keep global variables to a minimum, I
realized that all my local variables that were created when a form is
Loaded are also in memory.
Am I shooting myself in the foot by moving variables that are only loaded
seldom onto forms that I am using somewhat frequently? If the variable is
going to be populated once on average per use of the form, should I really
be loading it into memory when the application starts and I load the most
commonly used forms?
What is the impact of moving the variables to global constants? Do I save
any memory? How do I declare a constant globally? In my global module
(gMod)?
Thanks,
Kevin
kevin.riggs@p...