On 1/14/03 12:34 PM, "Brian Preston" wrote:

> Another newbie question (thanks Ben for answering my
> last one ) : 
> 
> Which of these is better for storing state? What are
> the pros/cons? I've read a little in the Palm OS
> Companion about application preferences, and I've
> looked at some source code of other apps that use a
> lot of global variables.

Global variables are not persistent - that is, they don't exist when the
application is not running.  Globals are initialized when the application
launches, and trashed when the application exits.

Application preferences, on the other hand, do persist between executions of
the application.

Craig


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

Reply via email to