System.SysUtils.StrToInt
提供:RAD Studio API Documentation
Delphi
function StrToInt(const S: string): Integer;
C++
extern DELPHI_PACKAGE int __fastcall StrToInt(const System::UnicodeString S)/* overload */;
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 |
|---|---|---|---|---|
| function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | System.SysUtils |
説明
整数(10 進または 16 進表記)を表す文字列を数値に変換します。
StrToInt 関数は,10 進または 16 進表記の整数型の数値を表す文字列 S を数値に変換します。S が有効な数値を表していない場合,StrToInt は EConvertError 例外を生成します。