I did try preferences, but I'm still a bit new to this and can't seem to get
it to work right. Basically it crashes once I get it to compile. I really
could use an example of one that was done properly, because Im a little lost
here :(
//I tried to set the preference with this
PrefSetAppPreferences('mine', PrefDay, 0x01, dtStartDate.day,
sizeof(dtStartDate.day), true);
//on program entry I tried to read the preference like this
if (PrefOpenPreferenceDB(false)) //this causes a problem later on in the
program
{
day = 1;
// PrefGetAppPreferences('mine', PrefDay, day, sizeof(day),
true);
}
-----Original Message-----
From: Tim Kostka [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 28, 2004 11:34 AM
To: Palm Developer Forum
Subject: Re: storing date for future use
Have you tried storing it in preferences or a database yet? It's hard to
define a "best" way as both work quite well. You may find preferences to be
easier.
--
Tim Kostka
http://www.nuprograms.com
"Ornstein, Adam" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> What is the best way to store a dateType variable in memory so that I can
> access it the next time the program is run? Preference? File? Better way?
>
> Thanks
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/