Data.DB.TField.EditMask

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property EditMask: TEditMask read FEditMask write SetEditMask;

C++

__property System::Maskutils::TEditMask EditMask = {read=FEditMask, write=SetEditMask};

Properties

Type Visibility Source Unit Parent
property public
Data.DB.pas
Data.DB.hpp
Data.DB TField

Description

Contains a mask that restricts the data that can be entered into a data field.

Use EditMask to restrict the characters a user can enter. If the user attempts to enter a character that is not valid, the character is not accepted. Validation using the EditMask property is performed on a character-by-character basis. Use the OnValidate event instead to validate the entire input, just before it is posted.

Setting EditMask to an empty string removes the mask.

Note: For a description of the format required by EditMask, see the TEditMask type.

See Also