Mega Code Archive

 
Categories / Delphi / Examples
 

Using global values in your application

Question: How do I create a global variable/constant/type in my application. Answer: Create a new unit and declare the variable, constant, type in interface section of the unit. When you want to use the variable in another unit, simply add the unit name to the uses clause of unit you wish to use it from.