Thank you.  Have a pleasant weekend.

----- Original Message ----- 
From: "Logan Shaw" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[email protected]>
Sent: Sunday, October 30, 2005 4:50 AM
Subject: Re: Getting Text from a Field


> Del Ventruella wrote:
> > Got my code to work.  Had to update field by redrawing it.
> >
> > I would still like any insight that anyone might provide into how to
create
> > custom error codes.
>
> Pick any number greater than or equal to appErrorClass.  For example:
>
> #include <PalmOS.h>
>
> static const Err dontFeelLikeItError = appErrorClass;
> static const Err notInTheMoodError = appErrorClass + 1;
> static const Err feelingSpitefulError = appErrorClass + 2;
>
> You could put those all into a single .h file for your whole app;
> that makes it easier to make sure you aren't defining two constants
> to be the same.  I think you should also be able to do this:
>
> #include <PalmOS.h>
>
> enum
> {
>     dontFeelLikeItError = appErrorClass,
>     notInTheMoodError,
>     feelingSpitefulError
> };
>
> and it should assign the numbers (for the 2nd and following errors)
> automatically.
>
>    - Logan
>
> -- 
> 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