Class Module
9 Members
Sort Orders Class
Entisoft Tools 2.0 Object Library · SortOrders · 8 Functions · 0 Properties · 0 Subroutines
Declarations
Declarations
The functions in this group illustrate various aspects of the sort orders/collating sequences supported by the Microsoft products that support Visual Basic. Copyright 1998 Entisoft
Section
CharacterPositionsArray
Character Positions Array
Turn the sort order string into an array where the element number represents the ASCII value of the character, and the value represents the character's sequence within the character set.
Function
IsStringSorted
Is String Sorted
Return True if the characters in a string are in ascending sorted order when examined from left to right.
Function
IsStringSortedBinary
Is String Sorted Binary
Return True if the characters in a string are in ascending sorted order based upon their ASCII value.
Function
SortCharactersIndirect
Sort Characters Indirect
Performs an indirect sort of the characters within the string using a custom sort order. Takes a sort order like "FEDCBA" and a sort key like "ABCDEF" and sort data like "123456" and produces "654321". Result string will contain all of the characters from string vValue, NOT just the unique ones.
Function
SortOrderMatchingCharacterPairs
Sort Order Matching Character Pairs
Returns a string containing pairs of characters which have the same sort order within a specified collating sequence. Characters that have a unique position within the collating sequence (most non-alphabetic characters) are not included in the result string.
Function
SortOrderMatchingCharacters
Sort Order Matching Characters
Creates a 256-character string containing either the minimum or maximum Asc(ii) value of each of the characters that have the same collating sequence.
Function
SortOrderNumbers
Sort Order Numbers
Find the numbers of the valid sort orders/collating sequences and return them in a string.
Function
SortOrderString
Sort Order String
Produce a string which describes the sequence of each character in the specified sort order/collaring sequence.
Function