|
|
|
SftMaskContents.Valid Property |
Determines whether the contents are valid.
Syntax
VB.NET |
Boolean = object.Valid As Boolean |
||
VB |
Boolean = object.Valid As Boolean |
||
C#.NET |
bool Boolean = object.Valid; |
||
VC++ |
VARIANT_BOOL Boolean = object->Valid;
|
||
C |
HRESULT object->get_Valid(VARIANT_BOOL* Boolean); |
||
Delphi |
Boolean := object.Valid : WordBool; |
object
A SftMaskContents object.
Boolean
Determines whether the contents are valid.
Boolean |
Description |
True |
The control's contents are valid. |
False |
The control's contents are not valid. |
Comments
The Valid property determines whether the contents are valid.
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.ValidMsg property can also be used to determine whether the contents are valid and automatically displays an error message.