SftMask/OCX 6.5

SftMask.CustomValidation Event

Softel vdm, Inc.

Valid input is detected (custom application validation).

Syntax       

VB.NET

Private Sub object_CustomValidation(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.CustomValidation

VB

Private Sub object_CustomValidation(Cancel As Boolean)

C#.NET

void object_CustomValidation(object sender, EventArgumentType e);

VC++

void OnCustomValidationobject(VARIANT_BOOL* Cancel);

C

HRESULT OnCustomValidationobject(VARIANT_BOOL* Cancel);

Delphi

procedure objectCustomValidation(Sender: TObject; var Cancel : WordBool);

object

A SftMask object.

Cancel

A Boolean value. If True is returned, the contents are considered invalid and the ValidationError event occurs. If False is returned, the contents are considered valid. The default is False.

Comments

The CustomValidation event occurs when valid input is detected (custom application validation).

The CustomValidation event occurs whenever the control loses the input focus or the Contents.Valid and ValidMsg properties are used and the contents are valid (based on the Mask property).

This event allows the application to implement additional data validation, beyond the validation offered by the Mask property.

If the current input in the Masked Edit control is considered valid (based on the Mask property), the CustomValidation event occurs. The application can perform further validation and accept or reject the current contents.

Even though the contents are always considered valid in a simple edit control, the CustomValidation event still occurs.


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