Pascal Scripting: StrToInt

Prototype

function StrToInt(S: String): LongInt;

Description

The StrToInt function converts the string passed in S into a number. Returns -1 if not successful.

Remarks

Use of StrToIntDef instead of StrToInt is recommended.