DtvLong dal_mas_set_chk_fld (idf, chk)
Sets the check string of the field.
If you set a check string for the field, DataView will check whether characters entered in the field fulfill the conditions set by the individual check characters at the current position in the field. Thus you can define conventions for field input.
The following check characters can be used:
- > 0 < The character entered is changed to a space. If, however, the position is preassigned with a character (default entry), this character will be fixed at the position. If the pre-assignment is shorter than the check character, a space will be entered.
- > a < Upper case letters are transformed into lower case letters (all characters allowed).
- > A < Lower case letters are transformed into upper case letters (all characters allowed).
- > I < Upper case letters are transformed into lower case letters (except special characters).
- > L < Lower case letters are transformed into upper case letters (except special characters).
- > N < Only numeric characters are accepted.
- > X < X stands for any fixed character. The character entered will be automatically changed to the fixed character specified here. Upper-or lowercase will be kept, irrespective of whether the user presses the shift key or not. It is possible to enter special characters. The check characters themselves (0, a, A, l, L,N) cannot be used as fixed characters.
Quoting: With \X the meaning of the check characters is annulled. They become ordinary characters and can be used as fixed characters.
- > > < A > in front of the check string defines that all characters starting at the check string position must correspond to the rules set by the check string.
Attention!
The check string may not contain spaces followed by further check characters.
Example:
To assure item numbers being entered in the format > R232.544 c < you would have to specify the check string > RNNN.NNN0a < .
The function automatically invoke any set mask listener function.