[next] [tail] [up]

#### Char

Free Pascal supports the type Char. A Char is exactly 1 byte in size, and contains one character. A character constant can be specified by enclosing the character in single quotes, as follows : ’a’ or ’A’ are both character constants. A character can also be specified by its ASCII value, by preceding the ASCII value with the number symbol (#). For example specifying #65 would be the same as 'A'. Also, the caret character (^) can be used in combination with a letter to specify a character with ASCII value less than 27. Thus ^G equals #7 (G is the seventh letter in the alphabet.) When the single quote character must be represented, it should be typed two times successively, thus '''' represents the single quote character.

[next] [front] [up]