TCustomVariantType.Copy

Copy a custom variant value

Declaration

Source position: variants.pp line 204

public 
  procedure Copy(var Dest: tvardata; const Source: tvardata; 
                const Indirect: Boolean);  Virtual;  Abstract;

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

Name Description
TCustomVariantType.Clear Clear a value