System.AnsiStrings.ExtractRelativePath
Delphi
function ExtractRelativePath(const BaseName, DestName: AnsiString): AnsiString;
C++
extern DELPHI_PACKAGE System::AnsiString __fastcall ExtractRelativePath(const System::AnsiString BaseName, const System::AnsiString DestName)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.AnsiStrings.pas System.AnsiStrings.hpp |
System.AnsiStrings | System.AnsiStrings |
Description
Return file path name relative to base name.
ExtractRelativePath returns a file path name from DestName relative to the given BaseName. It strips the common path directories and adds '..\' on Windows, and '../' on Linux for each level up from the BaseName path.