SftMask/OCX 6.5

SftMask.AllowEmpty Property

Softel vdm, Inc.

Defines whether the contents are optional (valid even if empty).

Syntax       

Get

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;
VARIANT_BOOL Boolean = object->GetAllowEmpty();

C

HRESULT object->get_AllowEmpty(VARIANT_BOOL* Boolean);

Delphi

Boolean := object.AllowEmpty   : WordBool;

Put

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;
void object->PutAllowEmpty(VARIANT_BOOL 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.


Feedback / comments / error reports for this topic
© 2000, 2008 - Softel vdm, Inc. - www.softelvdm.com