I am trying to filter out "illegal" characters as the user is writing them
into a text field. To do this I wait for a keyDownEvent and then I process
it with the following code:

  case keyDownEvent:
        ch = pEvent->data.keyDown.chr;
        handled = ! ( TxtCharIsAlNum( ch ) || TxtCharIsCntrl( ch ) );
   break;

If handled = true
Then
    the system does not concatenate the character to the field.
Else
    the system concatenates the character to the field.

When I look at the results of TxtCharIsAlNum() it works correctly on the
Palm OS Emulator (Sony Clie). On the device Sony Clie NX60 (Palm OS 5.0) it
returns 0 for all character values including international characters.

Has anyone run into this problem?  Or does anyone have any ideas on the
cause of this defect and maybe a work around?

Thanks for any help.



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

Reply via email to