Skip to content

TCustomVariantType.CastTo

Cast a custom variant to another type.

Declaration

Source position: variants.pp line 208

public 
procedure TCustomVariantType.CastTo(var Dest: tvardata; 
                                   const Source: tvardata; 
                                   const aVarType: tvartype);  virtual;

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

Name Description
TCustomVariantType.Cast Cast a custom variant to another type.
TCustomVariantType.CastToOle Cast variant value to OLE value.