Function Character Types Class

EveryCharacterOfType

Accepts one of the Char.. constants and returns all of the characters of that type according to the currently-loaded character classification. The character classification definitions for the ANSI Windows character set are loaded by default.

Signature (Visual Basic / VBA)

Public Function EveryCharacterOfType( _
    ByVal vCharType As Variant _
    ) As Variant

Code Example

    EveryCharacterOfType(CharTypeUpper) = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    EveryCharacterOfType(CharTypeDigit) = "0123456789"

Parameters

Parameter Description
vCharType Character classification as defined by one of the CharacterTypeConstant values. Function returns Null if vCharType is Null or cannot be fixed up to a Long Integer value.

Notes & Version History

Details assuming that the US ASCII character classification definitions have been loaded. If the ANSI Windows definitions have been loaded, then the list of upper-case characters would also include all of the upper-case accented characters whose ASCII value is above 127.
v1.3 Change Changed the argument to be of type CharacterTypeConstants since those Constants are now part of an Enum(eration).
v2.0 Change Changed the argument back to a Variant type, and changed the return value back to a Variant.