Lexical Class function

From LabVIEW Wiki
Jump to: navigation, search
Object information
Owning palette(s) Comparison palette
Type Function
Requires Basic Development Environment
Icon Comparison Palette - Lexical Class.png

The Lexical Class function returns the class number for char. If char is a string, this function uses the first character in the string. If char is a number, this function interprets it as the ASCII value of a character.


The class number is a number that corresponds to the lexical class. Refer to the ASCII Codes table for the numbers that correspond to each character.

Class Number Lexical Class
0 Extended characters (codes 128 through 255)
1 Non-displayable ASCII characters (codes 0 to 31 excluding 9 through 13)
2 White space characters: Space, Tab, Carriage Return, Form Feed, Newline, and Vertical Tab (codes 32, 9, 13, 12, 10, and 11, respectively)
3 Digits 0 through 9
4 Uppercase characters A through Z
5 Lowercase characters a through z
6 All printable ASCII non-alphanumeric characters


Version Change(s)
LabVIEW 2018 More info to come.

See Also

External Links