StrToIntDef

Declaration: StrToIntDef(s: string; default: integer): integer;
Converts the string s (integer-type number in either decimal or hexadecimal notation) to an integer number. If s does not represent a valid number the value of the parameter default is returned.