Number Edit
On this page
The Number Editor control is used to enter number and currency values.
Basic design
![]()
The editor is a text box with validation logic behind it to ensure that only valid numerical values are captured. You may enter any text into it, but values that are not valid numbers will be discarded when the input is validated.
Validation
When the control loses focus, the entered text will be validated and re-formatted to fit the specifications for the field being edited. If the text cannot be converted to a numeric value, for example it contains alphabetical characters, the previous value of the control will be restored.
If the number of decimal places is defined, the value will be rounded to that many decimal places, and the fractional digits will be displayed.
If the input is cleared, the value will be:
- Left blank if the field allows blank values.
- Replaced with the default value if the field has one.
- Restored to the previous value if the field does not allow blank values.