> From: George Aslanis
>
> Based on our tests and the current thread, when defining an
> input field as numeric the field only accepts numbers & the
> decimal point. If this is true, am I to understand PalmOS
> (3.1) does not acknowledge negative numbers as valid numeric
> data?
>
That's too broad a statement to make. For example,
Int16 x = -27;
is totally valid.
However, it is true that if you define a Field as Numeric, you can not enter
either + or - in the field. So if you want to have a field for a person's
age, for example, then you could make the field numeric to eliminate most,
but not all, input errors. The docs say, "If checked, only the characters 0
through 9 and associated separators are allowed to be entered in the field.
The associated separators are the thousands separator and the decimal
character. The values of these two characters depend on the settings in the
Formats prefs panel."
If you have different field validation criteria, you'll have to program it
yourself. Due to the many possible ways to input text to a field, the
easiest thing to do is to validate when the field loses focus, or when the
form closes.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/