Public Function CharacterCountsToVariantVector( _ ByRef rCounts() As Variant _ , ByVal vString As Variant _ ) As Boolean
Assuming Dim avarCounts() As Variant for example CharacterCountsToVariantVector avarCounts(), "ABBCCC" leaves LBound(avarCounts) = 0 UBound(avarCounts) = 255 avarCounts(X) = 0 except for avarCounts(Asc("A")) = avarCounts(65) = 1 avarCounts(Asc("B")) = avarCounts(66) = 2 avarCounts(Asc("C")) = avarCounts(67) = 3See also:
FileCharacterFrequency Function SortCharactersByFrequency FunctionrCounts: The dynamic array of Variants in which the character counts will be stored.
Function returns True upon success.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.