The following table lists supported mask format keywords for use in simple mode with the Format and Validation Function Libraries.
Keyword | Description |
---|---|
0 | Digit, required. This element accepts any single digit between 0 and 9. |
9 | Digit, optional. |
# | Digit, optional. Plus and minus signs, + and -, are allowed. |
L | Letter, required. Restricts input to the ASCII letters a-z and A-Z. This mask element is equivalent to [a-zA-Z] in regular expressions. |
? | Letter, optional. Restricts input to the ASCII letters a-z and A-Z. This mask element is equivalent to [a-zA-Z]? in regular expressions. |
& | Character, required. |
C | Character, optional. Any non-control character. |
A | Alphanumeric, required. |
a | Alphanumeric, optional. |
. | Decimal placeholder. The actual display character used is the decimal placeholder appropriate to the culture option. |
, | Thousands placeholder. The actual display character used is the thousands placeholder appropriate to the culture option. |
: | Time separator. The actual display character used is the time placeholder appropriate to the culture option. |
/ | Date separator. The actual display character used is the date placeholder appropriate to the culture option. |
$ | Currency symbol. The actual character displayed is the currency symbol appropriate to the culture option. |
< | Shift down. Converts all characters that follow to lowercase. |
> | Shift up. Converts all characters that follow to uppercase. |
| | Disable a previous shift up or shift down. |
\ | Escape. Escapes a mask character, turning it into a literal. The escape sequence for a backslash is: \ \ |
H | All SBCS characters. |
K | SBCS Katakana. |
9 | DBCS Digit. |
K | DBCS Katakana. |
J | Hiragana. |
Z | All DBCS characters. |
N | Matches all SBCS big Katakana. |
N | Matches DBCS big Katakana. |
G | Matches DBCS big Hiragana. |
All other characters | Literals. All non-mask elements appear as themselves within wijinputmask. Literals always occupy a static position in the mask at run time, and cannot be moved or deleted by the user. |