String.Copy

Syntax

Copy(Var Result: String);

Parameters

Result - string variable, into 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 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:

String