AnsiStrings.ExtractRelativePath

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From AnsiStrings.pas

	function ExtractRelativePath(const BaseName: AnsiString; const DestName: AnsiString): AnsiString; overload;


Unit: AnsiStrings

Type: function

Visibility: public

C++ Information

From AnsiStrings.hpp

	System::AnsiStringT<0> __fastcall ExtractRelativePath(System::AnsiStringT<0> BaseName, System::AnsiStringT<0> DestName);


Unit: AnsiStrings

Type: function

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
Newest Version