Data.DB.TField.EditMask
[–] Properties | |
---|---|
Type: property | |
Visibility: public | |
Source: Data.DB.pas Data.DB.hpp
| |
Unit: Data.DB | |
Parent: TField |
Delphi
property EditMask: TEditMask read FEditMask write SetEditMask;
C++
__property System::Maskutils::TEditMask EditMask = {read=FEditMask, write=SetEditMask};
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.