System.TimeSpan.TTimeSpan.TryParse

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

Type Visibility Source Unit Parent
function public
System.TimeSpan.pas
System.TimeSpan.hpp
System.TimeSpan TTimeSpan

Description

Transforms a string into a TTimeSpan object.

The TryParse method transforms the string value given through the S parameter into a TTimeSpan object specified by the output parameter Value. TryParse returns True if the conversion succeeded and False otherwise.

See Also