Checking for the commandKeyMask set did the trick. Thanks.
<doc update>
StrChr() will complain when told to search for characters > 255
</doc update>
-Paul
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 15, 1999 11:17 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Problem with StrChr()?
>
>
> When Gremlins posts a character >= 256, it also sets the commandKeyMask
> modifier. This allows SysHandleEvent to handle those characters. Hence,
> those characters should not be showing up in your text fields. Are you
> finding instances where that modifier is not set?
>
> -- Keith Rollin
> -- Palm OS Emulator engineer
>
>
>
>
>
>
> "Paul Dugas" <[EMAIL PROTECTED]> on 03/15/99 07:58:19 PM
>
> Please respond to [EMAIL PROTECTED]
>
> To: "Palm List" <[EMAIL PROTECTED]>
> cc: (Keith Rollin/HQ/3Com)
> Subject: Problem with StrChr()?
>
>
>
>
> Hi all,
> While feeding my program a few gremlins to chew on, it died this evening.
> I
> managed to track it down to the following. Calls to StrChr(str,
> chr) where
> chr>=256 causes a "StringMgr.c, Line:670, bad chr passed" error. The
> questions is, are these character valid? Gremlins seems to be typing them
> into some of my textfield that I'm filtering. I got around it by testing
> for chr>255 before the StrChr(str, chr) call.
> Is this supposed to be this way?
> -Paul
> --
> Paul Dugas voice:+1-404-635-8026
> Systems Engineering Consultant fax:+1-404-635-8001
> Contractor for The Georgia DOTs NAVIGATOR mailto:[EMAIL PROTECTED]
> http://georgia-navigator.com http://pauld.dugas.com
>
>
>
>
>
>
>
>
>
>