@@0 Numeric validation

Numeric validation is a special function that is used in almost all applications. It ensures that if an entry is not placed between specified numeric boundaries it will not be accepted into the field. Instead an error message is displayed and the cursor is positioned in the field containing the invalid value. If the field is not changed, then no validation check is performed.

Syntax

syntax-numericvalidation

Field ID

The field ID is the direct address to data. It consists of a starting control character followed by a reference number and it ends with the ending control character ampersand (&) or a new starting control character.
Note: All control characters are replaced by a space when you display the panel on-screen or print it out.

Field number

The field number defines the position of the field in the panel. You can find the field number by counting from the left to the right and from top to bottom.

You can use the field number to connect a @@ function with a field.
Note:  If the field number in the @@ function and the related field do not correspond, the field is as entry field.
Use the starting control characters together with the field number.
Caution: 
Every time a new field is inserted or removed, you must recheck field positions. Therefore, you must use the field reference number or field text functions instead.

Maximum value

The maximum value (included) can be defined as an integer or a real number with decimal points.

Minimum value

The minimum value (included) can be defined as an integer or a real number with decimal points.

Example

#500;1;-1;-2;-3;01;00;79;

@@28;SWT;3;65;100;19;150;Example;

@@24;\OK;0;7;?0;;;P;T;F0;

@@24;Cancel;0;7;?0;;;PNPF3;T;F3;

@@24;Help;0;7;?0;;;PH;

@@0;*87;1;3;

_

_Value_(1-3)_*_87&

_

_$\OK___&_$Cancel&_$Help__&