Function String Searches Class

FirstNonUpperCaseForward

Return the string vLine starting with the first non-upper-case character. Skips all of the characters in vLine up to the first non-upper-case character. Uses the Visual Basic LCase$() function and not the built-in character classification routines.

Signature (Visual Basic / VBA)

Public Function FirstNonUpperCaseForward( _
    ByVal vLine As Variant _
    ) As Variant

Code Example

    FirstNonUpperCaseForward("ABCsample") = "sample"
    FirstNonUpperCaseForward("ABC123") = "123"

Parameters

Parameter Description
vLine The string whose leading upper-case characters are to be skipped. Function returns Null if vLine is Null or cannot be fixed up to a String. Function returns an empty string if vLine contains only upper-case characters.