Skip to content

TMaskUtils

Class to manipulate and work with edit masks.

Declaration

Source position: maskutils.pp line 80

type

  TMaskUtils = class(TObject)
  public
    function ValidateInput : string;
    function TryValidateInput : Boolean;
    property Mask: string; {rw}
    property Value: string; {rw}
    property InputMask: string; {r}
  end;

Inheritance

Description

TEditMask can be used to work with edit masks. It is used in the FormatMaskInput, FormatMaskText and MaskDoFormatText calls to do the actual work.

In general, the work is done by setting the Mask and Values properties, and reading the InputMask property or calling one of ValidateInput or TryValidateInput.

Properties

Member Visibility Description
InputMask read only public Text to be used as input mask.
Mask public The edit mask to use.
Value public (input) String value to validate.
See all Properties

Methods

Member Visibility Description
TryValidateInput public
ValidateInput public Check that the Value text is valid for the given mask.
See all Methods

See also

Name Description
Mask The edit mask to use.
Values (input) String value to validate.
InputMask The edit mask to use.
ValidateInput Check that the Value text is valid for the given mask.
TryValidateInput