Function String Manipulations Class

StringPastMinLength

"String Past Minimum Length" Returns the part of the longer string that is beyond the length of the smaller string. If the lengths of the strings match, then return an empty string.

Signature (Visual Basic / VBA)

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

Code Example

    StringPastMinLength("Zebra", "Zanzibar") = "bar"
    StringPastMinLength("Zoo", "Mat") = ""

Parameters

Parameter Description
vStringOne First of two strings whose length is to be compared. Function returns Null if vStringOne is Null or cannot be fixed up to a String.
vStringTwo Second of two strings whose length is to be compared. Function returns Null if vStringTwo is Null or cannot be fixed up to a String.

Notes & Version History

Version Was also called DifferenceString in the past before that name took on a different meaning.