IPath.Combine

Syntax

Combine(Path1: String; Path2: String): String;

Parameters

Path1 - the first path.

Path2 - the second path.

Description

The Combine method combines two strings of a path passed by the Path1 and Path2 parameters.

Example

Sub Main;

Var

Path1, Path2, s: String;

Begin

Path1:="c:\Work\";

Path2:="SubDir\1.txt";

s:=Path.Combine(Path1, Path2);

End Sub Main;

After executing the example the "s" variable contains a combined path.

See also:

IPath