System.AnsiStrings.ExtractFilePath
Delphi
function ExtractFilePath(const FileName: AnsiString): AnsiString;
C++
extern DELPHI_PACKAGE System::AnsiString __fastcall ExtractFilePath(const System::AnsiString FileName)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.AnsiStrings.pas System.AnsiStrings.hpp |
System.AnsiStrings | System.AnsiStrings |
Description
Extract drive and directory parts of filename.
ExtractFilePath extracts the drive and directory parts of the given filename. The resulting AnsiString is the leftmost characters of FileName, up to and including the colon or backslash that separates the path information from the name and extension. The resulting AnsiString is empty if FileName contains no drive and directory parts.
See Also
Code Examples