
This component allows you to create input masks or to load them from pre-defined templates. Input characters are validated against those in the mask (capital letters, digits, etc.). With a MaskEdit component on a form click the ellipsis in the Properties column of the Object Inspector:

This opens a dialogue box:

Click the Masks button to open the templates (this is the one for the UK). Specify the character you want to use for blanks (the places where the user enters text). Specify where you want blanks to appear in the mask (e.g. between the parts of a phone number or postcode). Check the Save Literal Characters box
This mask requires two alphabetic characters, 3 digits, a space, 3 digits and 1 alphabetic character:
!>AA000 000A - this puts A at the start, requires another capital letter (converts lower case), 6 digits in two groups of 3 and an upper case letter to end.
\N\A000 000\X - this puts NA at the start of the input, requires 6 digits in two groups of 3 and adds X at the end.
An example:
