Think, that you don't have access to globals, when the alarm is
triggered. There no restriction accessing a database. Just make all
variables local, open your DB (check for error) read the record and
decide if you want to go to a visible alarm or not.
Regards
Henk
Mario Hewardt wrote:
Hi All,
Basically what I have is the following:
1. User selects a time.
2. If the current time < selected time, alarm is set for that time today.
3. Otherwise, set the alarm for that time on the following day
When the alarm triggers I need to see if the record for that alarm date has a particular field set. If so, I disregard the alarm, otherwise I try to get the users attention.
I've tried passing in a pointer to the record when setting the alarm but that crashes
(presumably due to not being available at that time). I've also tried initiliazing the
database and reading the record when the alarm triggers but that also crashes. Are
there any other teqniques for achieving this?
Thanks in advance!
--
-------------------------------------------------------------------------
Henk Jonas
Palm OS Â certified developer
[EMAIL PROTECTED] www.metaviewsoft.de
-------------------------------------------------------------------------
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/