System.IOUtils.TPath.Combine

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function Combine(const Path1, Path2: string): string; inline; static;

C++

static System::UnicodeString __fastcall Combine(const System::UnicodeString Path1, const System::UnicodeString Path2);

Properties

Type Visibility Source Unit Parent
function public
System.IOUtils.pas
System.IOUtils.hpp
System.IOUtils TPath

Description

Combines two paths strings.

Call Combine to obtain a new combined path from two distinct paths. If the second path is absolute, Combine returns it directly; otherwise Combine returns the first path concatenated with the second one.


The following table lists the parameters expected by this method:

Name Meaning

Path1

The first path. Path1 is used as root for Path2.

Path2

The path that is concatenated with Path1.

Note: Combine raises an exception if the given paths contain invalid characters.

See Also