Asanka Hewage wrote:
Hi
I'm using codewarrior as a development tool HandBase for database.
Let's consider 2 files, first.c and second.c. I need a global variable for both these files.
Is it Possible??????????????
If it's possible please send me some code samples.
Thank
Asanka.
Of course it's possible to declare a global variable. Just define it in
your project outside of any particular function. To make the variable
available to more than one of your c files then you must declare the
variable name in a header file, and include that header file in any c
file where you want to use the variable. Bob.
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/