<-- Previous || Up || Next -->

Sort Order Matching Character Pairs Function
Sort Orders Class

Public Function SortOrderMatchingCharacterPairs( _
    Optional ByVal vCompare As Variant _
    ) As String

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.

Examples:
     SortOrderMatchingCharacterPairs(vbBinaryCompare) = ""
     SortOrderMatchingCharacterPairs(vbTextCompare) = "...AaBbCcDdEeFf..."
See also:
    SortOrderMatchingCharacters Function
    SortOrderString Function
Note: The results of example #2 has been condensed with "..." to save space.
Note: Function currently only works for characters whose ASCII value is between 0 and 255, so it does NOT support UNICODE.

vCompare: Specifies the sort order/collating sequence in which pairs characters matching characters are to be located. vCompare defaults to Binary comparisons if it is missing or Null or cannot be fixed up to a number; in the Binary collating sequence, no two characters match, so the function will return an empty string.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.