FormatMaskText formats a text.
function FormatMaskText(const EditMask: string; const Value: string): string;
FormatMaskText applies the mask specified in the parameter EditMask to the string specified in the parameter Value. The mask string consists of three fields separated by semicolons. The first field contains the mask itself. The second field is the character that determines whether the characters in the mask are compared with characters in the Value parameter or inserted into the string. The third field of the mask is the character that replaces the missing character in the mask. Here you can find out which characters can be used in the EditMask.
Since the format mask is quite complex, the command is rarely used.
var S : String; begin s:=FormatMaskText('(+00) 0000-0000;0;*', '49612693730'); ShowMessage(s); end;
Rules to understand the script can be found here.
The text '49612693730' is formatted via the format mask and assigned to the string variable S.
ShowMessage shows: (+49) 6126-93730
A description of the format mask can be found under DisplayFormat.