Sign in Join
FPDoc Onlineexperiment

GetPropValue function

In unit TypInfo

Get property value as a variant.

Declaration

pascal
function GetPropValue(Instance: TObject; const PropName: string)
: Variant

Description

GetPropValue returns the value of a property of the object Instance as a Variant value. The property can be specified as a name using PropName, or using property RTTI info in PropInfo. If PreferStrings is True then a string value is returned where possible.

The Variants unit must be added to your project for this function to be able to do its work properly.

See also

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