Zum Hauptinhalt springen

StrToIntDef

Converts a string that represents an integer (decimal or hex notation) to a number.

Structure

StrToIntDef(string1; Default: Integer): Integer;

Parameters

Return Value

Description

StrToIntDef converts the string S, which represents an integer-type number in either decimal or hexadecimal notation, into a number. If S does not represent a valid number, StrToIntDef returns the number passed in Default. |