Home  |  Delphi .net Home  |  System.IO.DirectoryInfo  |  ToString Method
  
ToString  
Method  
Returns the current Directory path is returned as a string
DirectoryInfo Class
System.IO NameSpace
CF1.  Function ToString : String;
CF : Methods with this mark are Compact Framework Compatible
Description
Returns the current directory path as a string
Microsoft MSDN Links
System.IO
System.IO.DirectoryInfo
 Author links

 Buy Website Traffic at
 Buywebsitetrafficexperts.com

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

uses
  System.IO;

var
  DirInfo   : System.IO.DirectoryInfo;

begin
  // Create a DirectoryInfo object for this Base folder
  DirInfo := System.IO.DirectoryInfo.Create('C:\Base');

  // Display this object using ToString
  Console.WriteLine(DirInfo.ToString);

  Console.Readline;
end.
   C:\Base
 
 
Delphi Programming Neil Moffatt 2002 - 2017. All rights reserved.  |  Contact the author