VLPropertyList Reference

MethodCategoryCompare

See Also See Also Applies To Applies To

This event is triggered during sorting of properties.

 

Syntax

Private Sub object_CategoryCompare (ByVal FirstCategory As String, ByVal SecondCategory As String ByVal bNameButtonClicked As Boolean, ByRef bSwap As boolean)

 

The CategoryCompare event syntax has these parts:

PartDescription
object An object expression that evaluates to a VLPropertyList.
FirstCategory A string expression specifies the name of the category.
SecondCategory

A string expression specifies the name of the category.
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 FirstCategory will appear before or after the SecondCategory.

 

Settings

Setting for bSwap are:

Value Description
False FirstCategory should appear before the SecondCategory.
True FirstCategory name should appear after the SecondCategory name.

 

Remarks

The user can set the value of the bSwap to change the order of the items displayed. This event is typically used when category names are specified in a language other than English.

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