Sign in Join
FPDoc Onlineexperiment

GetVariantProp function

In unit Variants

Get variant valued property.

Declaration

pascal
function GetVariantProp(Instance: TObject; PropInfo: PPropInfo)
: Variant

Arguments

Instance

Instance from which to get property.

PropInfo

Pointer to property description (RTTI).

Function result

Property value.

Description

GetVariantProp returns the value of the variant-types property described by PropInfo or PropName from the Instance.

This function is used as the value for the TypInfo unit's OnGetVariantProp callback. This callback is automatically initialized with the function when the variants unit is used.

See also

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