Combine(Path1: String; Path2: String): String;
Path1 - the first path.
Path2 - the second path.
The Combine method combines two strings of a path passed by the Path1 and Path2 parameters.
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: