System.Rtti.TRttiField.SetValue

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetValue(Instance: Pointer; const AValue: TValue); override;

C++

virtual void __fastcall SetValue(void * Instance, const TValue &AValue);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Rtti.pas
System.Rtti.hpp
System.Rtti TRttiField

Description

Sets the field's value in a given instance.

Call SetValue to set a a new value to the field in a given instance. SetValue requires a TValue structure containing the new value of the field.

The AInstance parameter can either point to a class instance or to a record instance.

See Also