Sign in Join
FPDoc Onlineexperiment

TCustomVariantType.Copy procedure

Member of TCustomVariantTypepublicIn unit Variants

Copy a custom variant value.

Declaration

pascal
procedure Copy(var Dest: tvardata; const Source: tvardata; 
 const Indirect: Boolean); virtual; abstract

Arguments

Dest

Destination custom variant.

Source

Source custom variant.

Indirect

Must the copy be indirect.

Description

Copy is used when a custom variant value is assigned to another variant. This is an abstract method that must be overridden and implemented in descendent classes. When the method returns, the type of the Dest variant record must be equal to the Source type (the custom varant type value).

If Indirect is True source contains a reference to the custom variant. In that case, dest should also contain a reference.

Errors

If this method is not overridden, an abstract error will be thrown.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.