Home  |  Delphi .net Home  |  System.OperatingSystem  |  ToString Method
  
ToString  
Method  
Provides Operating System information in a single string
OperatingSystem Class
System NameSpace
CF1.  Function ToString : String;
CF : Methods with this mark are Compact Framework Compatible
Description
Builds a string with the following contents :
 
Platform MajorVersion.MinorVersion.Build.Revision
Microsoft MSDN Links
System
System.OperatingSystem
 Author links

 Buy Website Traffic at
 Buywebsitetrafficexperts.com

 Buy Proxies at
 Buyproxies.io
 
 
 
A simple example
program Project1;
{$APPTYPE CONSOLE}

var
  os  : System.OperatingSystem;
  ver : Version;
begin
  ver := System.Environment.OSVersion.Version;
  os := System.OperatingSystem.Create(PlatformId.Win32NT, ver);

  Console.WriteLine(os.ToString);

  Console.ReadLine;
end.
   Microsoft Windows NT 5.1.2600.0
 
 
Delphi Programming Neil Moffatt 2002 - 2017. All rights reserved.  |  Contact the author