|
|
|
SftMaskContents.ValidMsg Property |
Determines whether the contents are valid (with error message handling).
Syntax
VB.NET |
Boolean = object.ValidMsg As Boolean |
||
VB |
Boolean = object.ValidMsg As Boolean |
||
C#.NET |
bool Boolean = object.ValidMsg; |
||
VC++ |
VARIANT_BOOL Boolean = object->ValidMsg;
|
||
C |
HRESULT object->get_ValidMsg(VARIANT_BOOL* Boolean); |
||
Delphi |
Boolean := object.ValidMsg : WordBool; |
object
A SftMaskContents object.
Boolean
Determines whether the contents are valid (with error message handling).
Boolean |
Description |
True |
The control's contents are valid. |
False |
The control's contents are not valid. An error message based on MessageEmpty or MessageInvalid has been displayed. |
Comments
The ValidMsg property determines whether the contents are valid (with error message handling).
The error message defined by the MessageEmpty or MessageInvalid properties is displayed if the contents are empty or invalid.
The AllowEmpty property defines whether the contents are optional (valid even if empty).
If the control contents dont match the defined mask (see Mask property), the ValidationError event occurs.
If the control contents are valid and match the defined mask (see Mask property), the CustomValidation event is invoked.
The Contents.Valid property can also be used to determine whether the contents are valid without the display of an error message.