>  I'm trying to figure out how to set up an alphanumeric field
>and then mask all invalid input.

In your keyDownEvent event handler do:

if ( ! TxtCharIsDigit ( key ) && key != '-'  && key != '.'  )
        return true;

Of course, you shouldn't use literals, and this doesn't necessarily 
work with all character sets, but it should give you the basic idea.

Regards,
Steve Mann

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

Reply via email to