Helmut wrote...> BTW: Why do you set 'handled' if you return true anyway?

I thought that myself, but it's a global value, maybe he's using it elsewhere? 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Helmut A. Bender
Sent: 20 July 2005 11:22
To: Palm Developer Forum
Subject: Re: Any one see a problen here cause my books say no

BTW: Why do you set 'handled' if you return true anyway?

Am Mittwoch, 20. Juli 2005 01:23 schrieb druid:
> but compiler says yes
>
> #include <PalmOS.h>
> #include "testdb.h"
> #include "testdb_res.h"
> FormType *frmP;
> Boolean handled = false;
> ControlType *one;
>
> static Boolean frmQuestNew_frmDoneButton_OnSelect(EventPtr event)
> {
>       frmP = FrmGetActiveForm();
>       // Insert code for frmDoneButton
>       one = FrmGetObjectPtr(frmP,  FrmGetObjectIndex(frmP,chkHeritage));
>       If (CtlGetValue(one)) StrCopy(heritage, "YES");
>        else
>        StrCopy(heritage, "NO");
>        handled = true;
>       return true;
> }

-- 
Mit freundlichen Grüßen
Helmut A. Bender
Helmut Bender GmbH

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

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

Reply via email to