Char.IsDigit

Syntax

IsDigit: Boolean;

Description

The IsDigit property returns whether the variable contains a decimal. The property returns True if the value is numeric, 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.IsDigit;

b1 := c1.IsDigit;

b2 := c2.IsDigit;

b3 := c3.IsDigit;

End Sub Main;

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

See also:

Char