System.TimeSpan.TTimeSpan.TryParse

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

Delphi

class function TryParse(const S: string; out Value: TTimeSpan): Boolean; static;

C++

static bool __fastcall TryParse(const System::UnicodeString S, /* out */ TTimeSpan &Value);

プロパティ

種類 可視性 ソース ユニット
function public
System.TimeSpan.pas
System.TimeSpan.hpp
System.TimeSpan TTimeSpan

説明

文字列を TTimeSpan オブジェクトに変換します。

TryParse メソッドは、S パラメータを通して指定された文字列値を出力パラメータ Value で指定される TTimeSpan オブジェクトに変換します。 TryParse は、変換が成功すれば True を返し、失敗すると False を返します。

関連項目