Function Character Types Class

IsGraph

"Is Character Graphical" Return True if the character with ASCII value vCharCode is a "graphical" character; return False otherwise. The "graph" classification includes alphanumeric (alphabetical and numeric) and punctuation characters.

Signature (Visual Basic / VBA)

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

Code Example

    IsGraph(Asc("7")) = True
    IsGraph(Asc("%")) = True
    IsGraph(Asc(vbCr)) = False

Parameters

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

Notes & Version History

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