Public Function MaxLengthAnyPart( _ ByVal vValue As Variant _ , ByVal vPartSep As Variant _ , Optional ByVal vCompare As Variant _ ) As Variant
MaxLengthAnyPart("This" + vbCrLf + "is", vbCrLf) = 4 MaxLengthAnyPart("This is a test.", " ") = 5 MaxLengthAnyPart("This is", vbCrLf) = 7See also:
MaxLengthFileLines Function MaxLengthVariantVectorElement FunctionNote: The separator string is not counted in the length of any of the parts.
vValue: The string containing the parts whose maximum length is to be returned. Function returns Null if rValue is Null or cannot be fixed up to a String.
vPartSep: The string which separates the parts of string vValue. Function returns Null if vPartSep is Null or cannot be fixed up to a String.
vCompare: Specifies the type of comparison used to determine if the separator string vPartSep appears within the string vValue. vCompare defaults to Binary comparisons if it is missing or Null or cannot be fixed up to a number.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.