Function String Searches Class

GetTokenNonSpace

"Get Non-space Token" Remove the first non-space token from the argument and return the token. Function skips leading space-type characters (spaces, tabs, line feeds, etc.) before returning the first token.

Signature (Visual Basic / VBA)

Public Function GetTokenNonSpace( _
    ByRef rValue As Variant _
    ) As Variant

Code Example

    Assuming
       Dim S As String
       S = "   First, Second, Third"
    for example
       GetTokenNonSpace(S) = "First,"
    leaves
       S = "Second, Third"

Parameters

Parameter Description
rValue The string containing the tokens of which the first is to be removed and returned. Function returns Null if rValue is Null or cannot be fixed up to a String.