Function Character Types Class

IsAlpha

"Is Character Alphabetic" Return True if the character with ASCII value vCharCode is alphabetic ("A".."Z", "a".."z"; includes accented characters such as C-circumflex within the definitions for the ANSI Windows character set). Function returns False otherwise.

Signature (Visual Basic / VBA)

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

Code Example

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

Parameters

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

Notes & Version History

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