User Tools

Site Tools


api:dk11:delphi:gisinternals.getpathrelative_string_string

Table of Contents

GetPathRelative method

DK11 for Delphi | GisInternals.GetPathRelative | Enums | Fields | Methods | Types

Returns a path given by _path but relative to directory given by _dir. Path recognized as URL and path with CE delimited strings will not be altered.

Syntax

// Delphi
function GetPathRelative(
  const _dir : String;
  const _path : String
) : String;
// C++ Builder
extern DELPHI_PACKAGE UnicodeString GetPathRelative(
  const UnicodeString _dir,
  const UnicodeString _path
);

Parameters

Name Type Description
_dir String reference directory
_path String given path

Result

Type Description
String Path given by _path but relative to directory given by _dir.

Remarks

Function expands any embedded aliases (see GisAliasList)

2019/02/08 01:13