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

SetPropValue

Set property value as variant.

Declaration

Source position: typinfo.pp line 1296

procedure SetPropValue(

  Instance: TObject;

  const PropName: string;

  const Value: Variant

);

procedure SetPropValue(

  Instance: TObject;

  PropInfo: PPropInfo;

  const Value: Variant

);

Description

GetPropValue sets the value of a property of the object Instance as a Variant value, specified in Value. The property can be specified as a name using PropName, or using property RTTI info in PropInfo.

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

See also

GetPropValue

  

Get property value as a variant.


Documentation generated on: Jul 25 2025