Function String Searches Class

FirstUpperCaseForward

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

Signature (Visual Basic / VBA)

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

Code Example

    FirstUpperCaseForward("abcSAMPLE") = "SAMPLE"
    FirstUpperCaseForward("abc123") = ""

Parameters

Parameter Description
vLine The string whose leading non-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 does not contain any upper-case characters.