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 が有効な数値を表していない場合,StrToIntEConvertError 例外を生成します。

関連項目

他の言語