Public Function IsAnagram( _ ByVal vPhraseOne As Variant _ , ByVal vPhraseTwo As Variant _ , Optional ByVal vAlphabet As Variant _ ) As Variant
IsAnagram("Abba", "Baba") = True IsAnagram("Tim Taylor", "Mortality") = True IsAnagram("Jill Taylor", "Jolly Trail") = True IsAnagram("Hello World", "This is a test.") = FalseSee also:
SortCharacters Function IsAlliteration Function IsPalindrome FunctionNote: See the Shareware program Namegram if your are interested in generating your own anagrams.
vPhraseOne: First of two phrases which are to be checked to determine if they are anagrams of each other. Function returns Null if vPhraseOne is Null of cannot be fixed up to a String.
vPhraseTwo: Second of two phrases which are to be checked to determine if they are anagrams of each other. Function returns Null if vPhraseTwo is Null of cannot be fixed up to a String.
vAlphabet: The characters within strings vPhraseOne and vPhraseTwo which are to be checked to see if they represent anagrams. vAlphabet defaults to the alphanumeric characters if it is missing or Null or cannot be fixed up to a String.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.