Silvia Brunet wrote:
> 
> This is an excellent idea thank  you very much.
> However is not working, I am setting my alarm before
> the hotsync which sets it right but then in pilot main
> i have if (cmd = sysAppLaunchCmdDisplayAlarm)
> then i call my application, well i never get to this point
> why is this?
> Isnt is suppose to send this launch code to my application.
> I have several databases in my applications so when i use
> 
> dbID = DmFindDatabase(0, "BarcodesDatabase");
> AlmSetAlarm(0,dbID,0,TimGetSeconds()+15,0);
> what database name should i use

   You don't want to set an alarm for your database, you want to
set an alarm for your _app_.  How is your database going to respond?
There's no code there.
   For sanity's sake you should also check to make sure that dbID
is valid before passing it to AlmSetAlarm.  And don't assume that
cardNo will always be 0.
   You can find a lot of good information about AlmSetAlarm in the
most recent docs under Section II, Part 25, pp. 443 - 447.

Regards,
Daniel.

Reply via email to