TCustomVariantType.Cast procedure
Cast a custom variant to another type.
Declaration
procedure Cast(var Dest: tvardata; const Source: tvardata); virtualArguments
Dest | Custom variant to copy value to. |
Source | Variant to copy value from. |
Description
Cast is called when a variant value
Source is cast to a custom variant
Dest.
Descendents must override this method to provide the desired conversion behaviour.
The TCustomVariantType implementation of Cast calls CastTo on the source variant with as destination type the custom variant type.
Errors
If the variant type cannot be cast, an exception is raised.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
