At 12:00am -0800 00-03-24, Palm Developer Forum digest wrote:
>Subject: Is there a bug in TxtCharIsDigit?
>From: Roberto Amorim <[EMAIL PROTECTED]>
>Date: Thu, 23 Mar 2000 13:59:01 -0300
>X-Message-Number: 41
>
>I'm trying to use TxtCharIsDigit:
>
>char ch;
>
>if (TxtCharIsDigit(ch)) ... ;
>
>CW R6 shows this error message:
>
>Error: undefined identifier '_DI'
>pv.c line 504 ((txtCharAttr(ch) $_DI) != 0)
>
>What can be wrong?
The _DI and other character attribute bit mask values are defined in
CharAttr.h. These are used by the TxtCharIsXXX macros, so you'll need
to include CharAttr.h in addition to TextMgr.h.
Though if you're including <PalmOS.h>, both of these files are
included for you.
As other people have noted, if you want your app to run on pre-3.1
versions of the OS, you should use the TxtGlueCharIsXXX routines
found in PalmOSGlue.lib, which you then link against.
-- Ken
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html