Why don't you try this one? If you receive '-' key just add '-' to the beginning of text in field or remove it if there is one. Now you can use numeric field.
"Oliver" <[EMAIL PROTECTED]> wrote in message news:98057@palm-dev-forum... > > > In your keyDownEvent event handler do: > > > > [...] > > But that, of course, doesn't prevent the user from > entering something like "1-2.3-...24----24", so you'd > still need to write code to validate that what was > entered is actually a valid number, i.e., > > - minus character is at the beginning if used at all > - only one decimal "point" if any at all > - thousand separators in right place (if you want to > support those > ... > > Oliver > > > __________________________________________________ > Do you Yahoo!? > Faith Hill - Exclusive Performances, Videos & More > http://faith.yahoo.com > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
