I try to check if the value assigned to a variable s is in the range '0' .. '9'. (Range may be different). Can I write something like this so as not to list all the values? Of course, I guess that you can check the range with> <but maybe there is some other way?
procedure MyBeforeInstall(); var s: string; begin s := '1'; if s in '0'..'9' then //< ошибка Type mismatch MsgBox('in range', mbInformation, MB_OK); else MsgBox('out of range', mbInformation, MB_OK); end;