Convert a string to integer in Pascal (using DevPascal)