Show: Delphi C++
Display Preferences

System.AnsiStrings.ExtractRelativePath

From RAD Studio API Documentation
Jump to: navigation, search

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.

See Also

Personal tools
RAD Studio 10.2 Tokyo
In Other Languages
Previous Versions
Assistance