I have a main program that uses some of my own units
In the main program, I have a global variable, let's call it Global_x
I initialize Global_x in the main program at the appropriate time.
I would like to use Global_x in one of the units, however because Global_x is defined after the "uses" clause, the unit does not recognize it.
Is there a way I can make a variable global to all parts of the program?
I am thinking that perhaps I need a unit that just defines the global variables (I only have a couple) so when the program compiles those variables are defined early on. Is there another way, something like a Forward statement, but not for procedures or functions and only for variables?
Thanks,
- Bill