SortComparisonRule Property

The SortComparisonRule property sets or returns which text comparison rule Transformer uses to sort category names.

Syntax

Application .SortComparisonRule

Applies To

Application Object

Discussion

You can choose either the comparison rule determined by regional settings in the Windows control panel, or the Transformer internal comparison rule, which is a byte-by-byte comparison of the binary representation of each string.

If you change the setting of this property for an existing model, the new rule applies only to new categories. Existing categories are not resorted. Therefore, existing categories may not be sorted consistently with new categories.

To have Transformer re-sort categories in a level, you must delete the Association object that contains the order-by information, and then create a new one.

To sort categories in a level, create an Association object for that level and set the AssociationRole property to trAssociationOrderBy.

This property uses values of xtrPreferences.

Type

Constant - xtrPreferences

Access

Read/Write

Examples

objTransApp.SortComparisonRule = xtrPreferences.trSortIgnoreControlPanel