System.Variants.FindCustomVariantType

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FindCustomVariantType(const AVarType: TVarType; out CustomVariantType: TCustomVariantType): Boolean;
function FindCustomVariantType(const TypeName: string; out CustomVariantType: TCustomVariantType): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall FindCustomVariantType(const System::Word AVarType, /* out */ TCustomVariantType* &CustomVariantType)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.Variants.pas
System.Variants.hpp
System.Variants System.Variants

Description

Retrieves the object that implements a custom Variant type.

Use FindCustomVariantType to obtain a reference to the object that implements a custom Variant type.

TypeName is the name of the TCustomVariantType descendant class you want to retrieve.

AVarType is the type code of Variant whose implementation class you want to retrieve. If you have an instance of a Variant whose value is a custom Variant Type, you can obtain a value for this parameter using the VarType function.

CustomVariantType returns an instance of the TCustomVariantType descendant that implements the indicated custom Variant type.

See Also