[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Variants' (#rtl)

TCustomVariantType.CastTo

Cast a custom variant to another type

Declaration

Source position: variants.pp line 201

public procedure TCustomVariantType.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

TCustomVariantType.Cast

  

Cast a custom variant to another type

TCustomVariantType.CastToOle

  

Cast variant value to OLE value


Documentation generated on: Jun 23 2021