System.SysUtils.TStringHelper.Copy
Delphi
class function Copy(const Str: string): string; inline; static;
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas | System.SysUtils | TStringHelper |
Description
Copie et renvoie la chaîne donnée.
Copy copie la chaîne donnée via le paramètre Str
et la renvoie. Copy est une fonction de classe statique.
var
MyString: String;
begin
MyString := 'This is a string.';
Writeln(String.Copy(MyString));
end.
Sortie :
This is a string.