At 12:00am -0700 00-09-23, Palm Developer Forum digest wrote:
>Subject: decimal point on numeric fields
>From: "Fima Furman" <[EMAIL PROTECTED]>
>Date: Fri, 22 Sep 2000 17:50:46 -0400
>X-Message-Number: 61
>
>       We just discovered that on some Pilots, decimal point is not allowed in
>numerical fields... I most cases I can write 5.5 on my Visor, but Palm IIIx
>seems to not allow decimal point in this field. Why? Is this a bug, or a
>feature?

A numeric field will restrict entry via keyDown events to only those 
characters which are digits (TxtCharIsDigit() == true) or a decimal 
point, as specified via the Formats panel. So if you specify a format 
which doesn't use the '.' for the decimal point, then you won't be 
able to enter it.

Also note that only one "decimal point" character is allowed in the 
field, and that this screening is only done on key-down event 
handling...so you can still paste non-numeric characters into the 
field. An additional limitation is that you can't enter the thousands 
separator character (e.g. ',' in the US). So many apps do their own 
screening for numeric fields.

-- Ken

Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200

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

Reply via email to