IsDigit: Boolean;
The IsDigit property returns whether the variable contains a decimal.
Available values:
True. The value is a number.
False. All the rest of the cases.
Sub UserProc;
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 UserProc;
After executing the example the "b2" variable contains True, and the "b", "b1" and "b3" variables contain False.
See also: