Unit 'Variants' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

FindCustomVariantType

Find a custom variant class on vartype.

Declaration

Source position: variants.pp line 265

function FindCustomVariantType(

  const aVarType: TVarType;

  out CustomVariantType: TCustomVariantType

):Boolean; overload;

function FindCustomVariantType(

  const TypeName: AnsiString;

  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: Nov 22 2024