function StrToInt(S: String): LongInt;
The StrToInt function converts the string passed in S into a number.
Use of StrToIntDef instead of StrToInt is recommended.