Done and done... this is a three-file example: --FILE 1: Globals.h-- extern Char *bob;
--FILE 2: Form1.c-- (variable defined here) #include "Globals.h" Char *bob = "This is a global variable."; // access bob as you would any normal variable - anywhere --FILE 3: Form2.c-- (variable used here) #include "Globals.h" // access bob as you would any normal variable - anywhere --END-- Hope that helps. It's usually a good idea to keep the global variable definitions grouped in some reasonable manner (i.e. keep all the VFS vars together, all of the current state ones together, etc.) -- Matthew (Darkstorm) Bevan [EMAIL PROTECTED] Margin Software, NECTI. http://www.marginsoftware.com Re-inventing the wheel, every time. - Afternoon, n.: That part of the day we spend worrying about how we wasted the morning. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
