Function Character Types Class

IsAlNum

"Is Character Alphanumeric" Return True if the character with ASCII value vCharCode is alphanumeric (either alphabetic like "A".."Z", "a".."z", or numeric like "0".."9"). Return False otherwise.

Signature (Visual Basic / VBA)

Public Function IsAlNum( _
    ByVal vCharCode As Integer _
    ) As Boolean

Code Example

    IsAlNum(Asc("A")) = True
    IsAlNum(Asc("5")) = True
    IsAlNum(Asc("#")) = False

Parameters

Parameter Description
vCharCode Character whose ASCII value is checked to determine if it belongs to the alphanumeric class.

Notes & Version History

Note Function will generate a runtime error if vCharCode is not between 0 (zero) and 255 inclusive.