isInteger(): Boolean;
The isInteger method of the String primitive type returns true if the receiver represents an integer value; otherwise, it returns false.
The following example shows the use of the isInteger method.
vars
stringValue : String;
begin
stringValue := '+123';
write stringValue.isInteger; // Outputs true
stringValue := '+123.456';
write stringValue.isInteger; // Outputs false
end;