SET DECIMALPOINT

Enables or disables the requirement of typing the decimal point.

Syntax

SET DECIMALPOINT ON|OFF

Comments

The DECIMALPOINT option is set ON by default.

 

DECIMALPOINT only has an effect on entry fields during FORM INPUT:

 

When DECIMALPOINT is ON:

typed digits fill the input mask from the right-most digit leftwards

there is no need to type the decimal point since its presence is assumed

mimics the functionality of TUI for numeric values with decimal point

 

When DECIMALPOINT is OFF:

typed digits fill the input mask from the first digit to the left of the decimal point leftwards

typed digits are assumed to belong to the integer part of the numeric value

decimals are assumed to be 0.

if there are decimals in the input numeric value, the decimal point must be typed

 

Example

set decimalpoint on

set decimalpoint off

 

Examples: Numeric value of an Entry Field with input mask ="9999.99" after a FORM INPUT.

 

Keys Pressed ON OFF
100 1.00 100.00
12345 123.45 12345.00
123.45 123.45 123.45
.99 99 99

 

Related Topics