HeaderPane
Main
Hide
Share Link
Print

AllowEmptyWithoutMask Property, SftMask Object

Defines whether the contents are optional when no mask is defined (control contents are valid even if empty).

Syntax

Get

C#bool Boolean = object.AllowEmptyWithoutMask;
VB.NETBoolean = object.AllowEmptyWithoutMask As Boolean
C++VARIANT_BOOL Boolean = object->AllowEmptyWithoutMask;
VARIANT_BOOL Boolean = object->GetAllowEmptyWithoutMask();
CHRESULT object->get_AllowEmptyWithoutMask(VARIANT_BOOL* Boolean);
VBBoolean = object.AllowEmptyWithoutMask As Boolean

Put

C#bool object.AllowEmptyWithoutMask = Boolean;
VB.NETobject.AllowEmptyWithoutMask = Boolean As Boolean
C++VARIANT_BOOL object->AllowEmptyWithoutMask = Boolean;
void object->PutAllowEmptyWithoutMask(VARIANT_BOOL Boolean);
CHRESULT object->put_AllowEmptyWithoutMask(VARIANT_BOOL Boolean);
VBobject.AllowEmptyWithoutMask = Boolean As Boolean

object

A SftMask object.

Boolean

Defines whether the contents are optional when no mask is defined (control contents are valid even if empty).

BooleanDescription
TrueThe control contents are optional.
FalseThe control contents are not optional and must be entered.

Comments

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


Last Updated 11/03/2026 - (email)
© 2026 Softel vdm, Inc.