string to Integer value (decimal)
Source position: amigados.pas line 2338
function StrToLong( |
const String_: PChar; |
var Value: LongInt |
):LongInt; |
String_ |
|
Input string. |
Value |
|
Pointer to integer value. Set to 0 if no digits are converted. |
Number of characters converted or -1.
Converts decimal string into Integer value. Returns number of characters converted. Skips over leading spaces and tabs (included in count). If no decimal digits are found (after skipping leading spaces and tabs), StrToLong() returns -1 for characters converted, and puts 0 into value.