Function Character Arrays Class

MaxAsc

" Maximum ASCII" Return the maximum ASCII value of the characters within a string.

Signature (Visual Basic / VBA)

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

Code Example

    MaxAsc("ABCDCBA") = 68
    MaxAsc("123") = 51
    MaxAsc(123) = 51

Parameters

Parameter Description
vString String containing the characters whose ASCII values are examined to determine the maximum. 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 maximum 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.