EhLib
ContentsIndexHome
PreviousUpNext
TDBEditEh.EditMask Property

Specifies the mask that represents what text is valid for the masked edit control.

Pascal
property EditMask: String;

Use EditMask to restrict the characters a user can enter into the masked edit control to valid characters and formats. If the user attempts to enter an invalid character, the edit control does not accept the character. Validation is performed on a character-by-character basis by the ValidateEdit method. 

 

Setting EditMask to an empty string removes the mask. 

 

If control is connected to database field then EditMask takes value from Field.EditMask property. First assignment to EditMask will always hold it value.

Copyright (c) 1998-2013. All rights reserved.
What do you think about this topic? Send feedback!