String.Copy

Syntax

Copy(Var Result: String);

Parameters

Result. String variable, to which the copy of the variable, for which this method is called, will be placed.

Description

The Copy method creates a copy of the value of the current string.

Example

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:

String