System.SysUtils.TStringHelper.Copy

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

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

プロパティ

種類 可視性 ソース ユニット
function public System.SysUtils.pas System.SysUtils TStringHelper


説明

指定された文字列をコピーし返します。

Copy は、Str パラメータで渡された文字列をコピーし、それを返します。Copy は、静的クラス関数です。

var
  MyString: String;

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

出力:

This is a string.

関連項目