RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDateTimeField.EditMask Property

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

Pascal
property EditMask: TEditMask;
C++
__property TEditMask EditMask;

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.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!