RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.StrToInt Function

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

Pascal
function StrToInt(const S: string): Integer;
C++
int StrToInt(const AnsiString S);

SysUtils

StrToInt 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, StrToInt raises an EConvertError exception. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!