Sign in Join
FPDoc Onlineexperiment

FindCustomVariantType function

In unit Variants

Find a custom variant class on vartype.

Declaration

pascal
function FindCustomVariantType(const aVarType: tvartype; 
 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.

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.