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

説明

0 基準の指定された文字列を、コピーして返します。

Copy は、Str パラメータで指定された 0 基準の文字列をコピーし、それを返します。Copy は、static クラス関数です。

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

出力は以下のとおりです。

 This is a string.

関連項目