Use the Input Mask editor to define an edit box that limits the user to a specific format and accepts only valid characters. For example, in a data entry field for telephone numbers you might define an edit box that accepts only numeric input. If a user then tries to enter a letter in this edit box, your application will not accept it.
Use the Input Mask editor to edit the EditMask property of the MaskEdit component.
To open the Input Mask editor:
Define your own masks for the edit box. You can use special character to specify the mask; for a listing of those characters, see the EditMask property.
The mask consists of three fields separated by semicolons. The three fields are:
Specify a character to use as a blank in the mask. Blanks in a mask are areas that require user input.
This edit box changes the third field of your edit mask.
Check to store the literal characters from the edit mask as part of the data. This option affects only the Text property of the MaskEdit component. If you save data using the EditText property, literal characters are always saved.
This check box toggles the second field in your edit mask.
Use Test Input to verify your mask. This edit box displays the edit mask as it will appear on the form.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!