SftMask/OCX 6.5

SftMaskContents.Valid Property

Softel vdm, Inc.

Determines whether the contents are valid.

Syntax       

Get

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

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 don’t 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.


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