VLPropertyList Reference

MethodValidateValue

See AlsoSee Also Applies To Applies To

This event is trigger when the value property of a property is about to change. User can validate the new value in this event and can cancel the change.

 

Syntax

Private Sub object_ValidateValue (ByVal aProperty As CProperty, ByVal newValue As Variant, ByRef bCancel As Boolean)

 

The ValidateValue event syntax has these parts:

PartDescription
object An object expression that evaluates to a VLPropertyList.

aProperty

An object which evaluates to the CProperty, specifies the Property of which the value is about to change.

newValue

New value of the property.

bCancel

A boolean expression. Use to specify the cancellation of the value change.

 

Remarks

ValidateValue is generated before the value change is committed to a property, this means that Value property of CProperty object passed as parameter will return the old value at this stage.