Florian,

The static keyword on a variable in the global space tells the compiler to 
limits its acces to the code in the module that defines it.

You need to use:

UInt16 variable1=7; one time in your main module. That will allocate memory 
for the variable.

then you use:
extern Unt16 variable1; in all module in which you want to access that same 
memory space.

I usualy create a Globals.h file that I include in my main module and an 
Externs.h file that I include in all my other modules.

-- 
Regis St-Gelais
www.laubrass.com



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to