in reply to Global Variables Across Files

Have a look at the interprocess communication document.