|
|
|
SftMask.AllowEmpty Property |
Defines whether the contents are optional (valid even if empty).
Syntax
VB.NET |
Boolean = object.AllowEmpty As Boolean |
||
VB |
Boolean = object.AllowEmpty As Boolean |
||
C#.NET |
bool Boolean = object.AllowEmpty; |
||
VC++ |
VARIANT_BOOL Boolean = object->AllowEmpty;
|
||
C |
HRESULT object->get_AllowEmpty(VARIANT_BOOL* Boolean); |
||
Delphi |
Boolean := object.AllowEmpty : WordBool; |
||
VB.NET |
object.AllowEmpty = Boolean As Boolean |
||
VB |
object.AllowEmpty = Boolean As Boolean |
||
C#.NET |
bool object.AllowEmpty = Boolean; |
||
VC++ |
VARIANT_BOOL object->AllowEmpty = Boolean;
|
||
C |
HRESULT object->put_AllowEmpty(VARIANT_BOOL Boolean); |
||
Delphi |
object.AllowEmpty := Boolean : WordBool; |
object
A SftMask object.
Boolean
Defines whether the contents are optional (valid even if empty).
Boolean |
Description |
True |
The control contents are optional. |
False |
The control contents are not optional and must be entered. |
Comments
The AllowEmpty property defines whether the contents are optional (valid even if empty).
If AllowEmpty is set to False, the contents are considered invalid if the control is empty and the user has not entered any data.
The Contents.Valid and Contents.ValidMsg properties can be used to test the contents.
The ValidationError event occurs when invalid input is detected.