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

Intersect Characters Function
Character Arrays Class

Public Function IntersectCharacters( _
      ByVal vStringOne As Variant _
    , ByVal vStringTwo As Variant _
    ) As Variant

Return a string containing the characters that two strings have in common.
Each unique character which appears in both vStringOne and vStringTwo will appear once within the result string.
Relational intersect operation on the characters in a string.

Examples:
    IntersectCharacters("ABBCCCDDDD", "FFEEDDCC") = "CD"
    IntersectCharacters("ABCABC", "123") = ""
See also:
    DifferenceCharacters Function
vStringOne: First of the two string from which the unique common characters will be copied into the result string. Function returns Null if vStringOne is Null or cannot be fixed up to a String.

vStringTwo: Second of the two string from which the unique common characters will be copied into the result string. Function returns Null if vStringTwo 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.