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

FindCustomVariantType

Find a custom variant class on vartype

Declaration

Source position: variants.pp line 258

function FindCustomVariantType(

  const aVarType: TVarType;

  out CustomVariantType: TCustomVariantType

):Boolean; overload;

function FindCustomVariantType(

  const TypeName: string;

  out CustomVariantType: TCustomVariantType

):Boolean; overload;

Arguments

aVarType

  

Variant type to look for

CustomVariantType

  

Instance of TCustomVariantType that handles aVarType.

Function result

True if a matching entry was found, False if not

Arguments

TypeName

  

Type name to look for

CustomVariantType

  

Instance of TCustomVariantType that handles aVarType.

Description

FindCustomVariantType searches the registry of known TCustomVariantType classes and returns the instance registered for the variant type aVarType or the class name TypeName in CustomVariantType if found.

It returns True if it found a matching definition, or False otherwise.

See also

TCustomVariantType

  

Base class for a custom variant type


Documentation generated on: Jun 23 2021