InputMask Property

JavaScript Editor js editor     Web development 



Main Page

Specifies how users enter data and how to display data in a control. Available at design time and run time.

Control.InputMask[ = cMask]

Return Value

cMask


Specifies settings to determine how to enter and display data. The following table displays the possible values for cMask.

cMask Description

!

Converts lowercase letters to uppercase letters.

#

Permit entry of digits, spaces, and signs, such as the minus sign ( – ).

$

Displays the current currency symbol, as specified by the SET CURRENCY command, in a fixed position.

$$

Displays floating currency symbol that always appears adjacent to the digits in a spinner or text box.

,

Displays the current digit-grouping, or separator, symbol as set by the Regional and Language Options setting in the Windows Control Panel.

.

Displays the current decimal point character as specified by the SET POINT command setting. (Default is a period (.))

9

Permits entry of digits and signs.

A

Permits alphabetic characters only.

H

Prevents entry of non-hexadecimal symbols in the specified position.

L

Permits logical data only.

N

Permits letters and digits only.

U

Permits alphabetic characters only and converts them to uppercase (A - Z).

W

Permits alphabetic characters only and converts them to lowercase (a - z).

X

Permits any character.

Y

Permits the letters, Y, y, N, and n for the logical values True (.T.) and False (.F.), respectively.

Remarks

Applies To: Column Object | ComboBox Control | Spinner Control | TextBox Control (Visual FoxPro)

InputMask differs from the Format property in that it specifies behavior for the entire input field. You can mix several Format codes; however, they affect all data in the input field.

See Also



JavaScript Editor js editor     Web development