System.SysUtils.TStringHelper.Copy

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function Copy(const Str: string): string; inline; static;

Properties

Type Visibility Source Unit Parent
function public System.SysUtils.pas System.SysUtils TStringHelper

Description

Copies and returns the given string.

Copy copies the string given through the Str parameter and returns it. Copy is a static class function.

var
  MyString: String;

begin
  MyString := 'This is a string.';
  Writeln(String.Copy(MyString));
end.

Output:

This is a string.

See Also