System.UnicodeString.ToIntDef

提供: RAD Studio API Documentation
移動先: 案内検索

C++

int          ToIntDef(int defaultValue) const;

プロパティ

種類 可視性 ソース ユニット
function public ustring.h System UnicodeString

説明

文字列を整数に変換します。文字列が無効である場合はデフォルト値を返します。

ToIntDef は、指定の文字列を整数値に変換して整数を返します。文字列に有効な値が含まれていない場合は、defaultValue によって指定される値を返します。

関連項目