SetPropValue procedure
Set a property value as a variant.
Declaration
procedure SetPropValue(Instance: TObject; PropInfo: PPropInfo;
const Value: Variant); overloadArguments
Instance | Instance to set property value of. |
PropInfo | Pointer to property information (RTTI). |
Value | Value to set property to. |
Description
SetPropValue sets the value of the property described by
PropInfo from the
Instance. The property value
is set from the variant-typed value
Value.
This function is used as the value for the TypInfo unit's OnSetPropValue 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.
