MaskEdit.Mask Property
A mask string that determines the editing behavior of mask edit.
For the mask string, specify a combination of mask characters, control characters, and literal characters for editing. Please refer to the table below for details.
Example
“009999-0999-000” Phone number
“000-0000” Postal code
“9999年99月99日” Date
“Seri¥¥a¥¥l No.” When using escape
Mask Characters
| Characters | Required input | Characters that can be entered |
|---|---|---|
| # | Half - width numbers ( 0-9 ) '-' , '+' sign, Half-width space | |
| 0 | ○ | Half - width numbers ( 0-9 ) |
| 9 | ||
| A ( capital ) | ○ | Half-width alphabetic characters ( A to Z , a to z ) Half - width numbers ( 0-9 ) |
| a ( small text ) | ||
| L ( large text ) , ? | ○ | Half-width alphabetic characters ( A to Z , a to z ) |
| l ( small text ) | ||
| C ( large text ) , & | ○ | Any half-width character However, if C is repeated more than once, you can also enter double-byte characters . Mobile version You can enter both full-width and half-width characters for one C. |
| c ( small text ) |
Control characters
| Characters | Description |
|---|---|
| < | Convert the letters after this symbol to lowercase and enter. (Full-width alphabets are not converted) |
| > | Enter the letters after this symbol by converting them to uppercase. (Full-width alphabets are not converted) |
| <> | After this symbol, disable case conversion and follow the keystrokes. |
| \ | The escape character. Treats the next one character as an editing literal character. Example)¥A, ¥0, ¥< |
| ; | This is the delimiter when a blank character is specified. |
Editing literal characters
Characters other than the above are retail characters for editing. The cursor is automatically skipped. It cannot be deleted or changed by screen operation.
Half-width conversion of full-width characters
If you enter a full-width character in the half-width character input field, it will be automatically converted to a half-width character. Full-width characters to be converted are alphanumeric characters, + sign,-sign, and space.
The following full-width symbol characters are also converted since Ver.5.0.0.
!! “# $% &’() * +,-./:; <=>? @ [] ^ _’{|}
Specify blank characters
By specifying a semi-colon “;” and one half-width character at the end of the mask character string, you can change the blank character displayed at the unentered position. This specification can be omitted, otherwise it will be an underscore “_”.
Example
“009999-0999-000; *”
The character used for the blank character can be entered as an input value, but it is not possible to determine whether the character specified for the blank character is set by key input or not.