Defines whether the contents are optional when no mask is defined (control contents are valid even if empty).
Get
| C# | bool Boolean = object.AllowEmptyWithoutMask; |
| VB.NET | Boolean = object.AllowEmptyWithoutMask As Boolean |
| C++ | VARIANT_BOOL Boolean = object->AllowEmptyWithoutMask; VARIANT_BOOL Boolean = object->GetAllowEmptyWithoutMask(); |
| C | HRESULT object->get_AllowEmptyWithoutMask(VARIANT_BOOL* Boolean); |
| VB | Boolean = object.AllowEmptyWithoutMask As Boolean |
Put
| C# | bool object.AllowEmptyWithoutMask = Boolean; |
| VB.NET | object.AllowEmptyWithoutMask = Boolean As Boolean |
| C++ | VARIANT_BOOL object->AllowEmptyWithoutMask = Boolean; void object->PutAllowEmptyWithoutMask(VARIANT_BOOL Boolean); |
| C | HRESULT object->put_AllowEmptyWithoutMask(VARIANT_BOOL Boolean); |
| VB | object.AllowEmptyWithoutMask = Boolean As Boolean |
object
Boolean
Defines whether the contents are optional when no mask is defined (control contents are valid even if empty).
| Boolean | Description |
|---|---|
| True | The control contents are optional. |
| False | The control contents are not optional and must be entered. |
The AllowEmptyWithoutMask property defines whether the contents are optional when no mask is defined (control contents are valid even if empty).
This property is only used when the Mask property defines an input mask. Otherwise, the AllowEmpty property is used instead. It is usually best to set the AllowEmpty and AllowEmptyWithoutMask properties to the same value.
If AllowEmptyWithoutMask 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.
See Also SftMask Object | Object Hierarchy