Copy(Var Result: String);
Result - string variable, into which the copy of the variable, for which this method is called, will be placed.
The Copy method creates a copy of the value of the current string.
Sub Main;
Var
S, S_Copy: String;
Begin
s := "ABCD";
S.Copy(S_Copy);
s := "";
End Sub Main;
After executing the example the contents of the "S" string will be copied to the S_Copy variable.
See also: