Function Character Arrays Class

MinAsc

" Minimum ASCII" Return the minimum ASCII value of the characters within a string.

Signature (Visual Basic / VBA)

Public Function MinAsc( _
    ByVal vString As Variant _
    ) As Variant

Code Example

    MaxAsc("DCBABCD") = 65
    MaxAsc("123") = 49
    MaxAsc(123) = 49

Parameters

Parameter Description
vString String containing the characters whose ASCII values are examined to determine the minimum. Function returns Null if vString is Null or cannot be fixed up to a String. Function returns Null if vString is an empty string (one with no characters whose minimum ASCII value could be determined).

Notes & Version History

Note Function uses the ASCII value of characters to determine if they match, which is in effect the same as using Binary comparisons.