System.SysUtils.TOSVersion.ToString
Delphi
class function ToString: string; static;
C++
static System::UnicodeString __fastcall ToString();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | TOSVersion |
Description
Returns the string representation of TOSVersion.
Use ToString to obtain the operating system information as a string. Example:
Writeln(TOSVersion.ToString);
printf("%ls", TOSVersion::ToString().c_str());
Possible output:
Windows XP Service Pack 3 (Version 5.1, Build 2600, 32-bit Edition)
or
Windows 11 (Version 21H2, OS Build 22000.318, 64-bit Edition)
Note: For macOS 11 and later, if the application is built with 10.15 or previous SDK version, the macOS returns 10.16 as a "compatible version number".