Copy(Var Result: String);
Result. String variable, to 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 UserProc;
Var
S, S_Copy: String;
Begin
S := "ABCD";
S.Copy(S_Copy);
S := "";
End Sub UserProc;
After executing the example the contents of the "S" string is copied to the S_Copy variable.
See also: