Specifies how data is entered and displayed in a control. Available at design time and run time.
Control.InputMask[ = cMask]
- The settings for the InputMask property are:
Setting Description ! Converts lowercase letters to uppercase letters. # Digits, blanks, and signs. $ The current currency symbol (specified with SET CURRENCY) in a fixed position. $$ Floating currency symbol that is always adjacent to the digits in the spinner or text box. , Current Digit grouping symbol setting of the Windows Regional Options Control panel. . Current SET POINT character (Default = period (.)). 9 Digits and signs, such as a minus ( – ) sign can be entered. A Alphabetic characters only. L Logical data only. N Letters and digits only. X Any character can be entered. Y Y, y, N, and n for the logical values true (.T.) and false (.F.), respectively.
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.