Function Character Types Class

IsConsonant

Return True if the character with ASCII value vCharCode is a consonant. The pre-programmed definitions for the ANSI Windows character set consider consonants to be those alphabetic characters which are not considered vowels.

Signature (Visual Basic / VBA)

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

Code Example

    IsConsonant(Asc("B")) = True
    IsConsonant(Asc("A")) = False

Parameters

Parameter Description
vCharCode ASCII value of a character which is checked to determine if it is a consonant.

Notes & Version History

Note Function will generate a runtime error if vCharCode is < 0 (less than zero). Function will return False if vCharCode is > (greater than) 255.