Skip to content

SetPropValue

Set property value as variant.

Declaration

Source position: typinfo.pp line 1297

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

Name Description
GetPropValue Get property value as a variant.