SftMask/OCX 6.5

SftMaskContents.ValidMsg Property

Softel vdm, Inc.

Determines whether the contents are valid (with error message handling).

Syntax       

Get

VB.NET

Boolean = object.ValidMsg  As Boolean

VB

Boolean = object.ValidMsg  As Boolean

C#.NET

bool Boolean = object.ValidMsg;

VC++

VARIANT_BOOL Boolean = object->ValidMsg;
VARIANT_BOOL Boolean = object->GetValidMsg();

C

HRESULT object->get_ValidMsg(VARIANT_BOOL* Boolean);

Delphi

Boolean := object.ValidMsg   : WordBool;

object

A SftMaskContents object.

Boolean

Determines whether the contents are valid (with error message handling).

Boolean

Description

True

The control's contents are valid.

False

The control's contents are not valid. An error message based on MessageEmpty or MessageInvalid has been displayed.

Comments

The ValidMsg property determines whether the contents are valid (with error message handling).

The error message defined by the MessageEmpty or MessageInvalid properties is displayed if the contents are empty or invalid.

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.Valid property can also be used to determine whether the contents are valid without the display of an error message.


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