Sign in Join
FPDoc Onlineexperiment

TCustomVariantType.CastTo procedure

Member of TCustomVariantTypepublicIn unit Variants

Cast a custom variant to another type.

Declaration

pascal
procedure CastTo(var Dest: tvardata; const Source: tvardata; 
 const aVarType: tvartype); virtual

Arguments

Dest

Variant to store the cast value in.

Source

Custom variant to cast to new type aVarType.

aVarType

Variant type to cast the custom variant to.

Description

CastTo is called when a custom variant value Source is cast to a variant type aVarType and stores the result in Dest. Descendents must override this method to provide the desired conversion behaviour.

See also

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