Show: Object Pascal C++
Display Preferences

System.AnsiStrings.ExtractRelativePath

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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.

See Also

Personal tools
Translations