InputMask Property

Applies To   See Also

Specifies how data is entered and displayed in a control. Available at design time and run time.

Syntax

Control.InputMask[ = cMask]

Settings

cMask

The settings for the InputMask property are:

Setting Description
X Any character can be entered.
9 Digits and signs, such as a minus ( – ) sign can be entered.
# Digits, blanks, and signs can be entered.
$ Displays the current currency symbol (specified with SET CURRENCY) in a fixed position.
$$ Displays a floating currency symbol that is always adjacent to the digits in the spinner or text box.
* Asterisks are displayed to the left of the value.
. A period specifies the decimal point position.
, Commas can be included to separate digits to the left of the decimal point.

Remarks

This property is in contrast to the Format property in which a behavior for the entire input field is specified. You can mix several Format codes, but they always affect everything in the input field.