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

Unique Characters Function
Character Arrays Class

Public Function UniqueCharacters( _
    ByVal vValue As Variant _
    ) As Variant

Quashes all repeated runs of a character to a single character.

Examples:
    UniqueCharacters("CCCBBABBCCC") = "CBABC"
    UniqueCharacters("122333122333") = "123123"
See also:
    UsedCharacters Function
    SortCharacters Function
vValue: String from which repeated runs of the same character will be replaced by a single copy of the character. Function returns Null if vValue is Null or cannot be fixed up to a String.

Note: Function uses the ASCII value of characters to determine if they match, which is in effect the same as using Binary comparisons.

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