VLPropertyList Reference

MethodPropertyCompare

See Also See Also Applies To Applies To

This event is triggered during sorting of properties.

 

Syntax

Private Sub object_PropertyCompare( ByValFirstProperty As CProperty, ByVal SecondProperty As CProperty,ByValbNameButtonClicked As Boolean ByRef bSwap As Boolean)

 

The PropertyCompare event syntax has these parts:

PartDescription
object An object expression that evaluates to a VLPropertyList.

FirstProperty

An object which evaluates to the CProperty.

SecondProperty

An object which evaluates to the CProperty.

bNameButtonClicked

A boolean expression specifying which column header is clicked. If value is true then the first (Name) column header is clicked for sorting. Otherwise second is clicked.

bSwap

A boolean value which specifies if the FirstProperty should appear before or after the SecondProperty.

 

Settings

Setting for bSwap are:

Value Description
False FirstProperty should appear before the SecondProperty in the view.
True FirstProperty should appear after the SecondProperty in the view.

 

Remarks

The user can set the value of the bSwap to change the order of the items displayed. This is typically used when property values are holding non textual data or are holding non-English text.

Please not that this event will be triggered only if CustomSort property is set to true .