Char.IsLetter

Syntax

IsLetter: Boolean;

Description

The IsLetter property returns whether the variable contains letters. The property returns True if the value is a letter, and otherwise it returns False.

Example

Sub Main;

Var

c, c1, c2, c3: Char;

b, b1, b2, b3: Boolean;

Begin

c := 'a';

c1 := 'A';

c2 := '4';

c3 := '+';

b := c.IsLetter;

b1 := c1.IsLetter;

b2 := c2.IsLetter;

b3 := c3.IsLetter;

End Sub Main;

After executing the example the "b" and "b1" variables will contain True, and the "b2" and "b3" will contain False.

See also:

Char