FIELD_INPUT_LENGTH

CodeGen

FIELD_INPUT_LENGTH

 

Inserts the maximum number of characters that can be typed into a UI input field representing the current field.

For alpha fields the input length is the same as the field size.

For decimal fields the input length will be one byte longer than the field size if the field allows negative values.

For implied decimal fields the input length will be one byte longer than the field size to allow for the entry of a decimal point, and two bytes longer that the field size if the field allows negative values.

For integer fields the input length is based on the maximum number of bytes that are required in order to be able to enter the maximum value supported by the integer field, but bear in mind that this may allow your user to enter a value larger than that supported by the underlying field. For example, an I1 field which allows negative values is capable of storing values in the range of -128 to 127, so the input length for the field is 4, but when used to constrain the length of a UI field this would allows the user to enter a value in the range -999 to 9999.

Usage

<FIELD_INPUT_LENGTH>

Alternate forms

None

See also

<FIELD_SIZE>

Other field loop expansion tokens

 

 


Copyright © 2012  Synergex International, Inc.