Data.DBXJSONReflect.TJSONUnMarshal.SetField

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: protected
Source:
Data.DBXJSONReflect.pas
Data.DBXJSONReflect.hpp
Unit: Data.DBXJSONReflect
Parent: TJSONUnMarshal

Delphi

procedure SetField(Data: TObject; const Field: string; Value: TObject); overload;
procedure SetField(Data: TObject; const Field, Value: string); overload;
procedure SetField(Data: TObject; const Field: string; Value: Boolean); overload;

C++

void __fastcall SetField(System::TObject* Data, const System::UnicodeString Field, System::TObject* Value)/* overload */;
void __fastcall SetField(System::TObject* Data, const System::UnicodeString Field, const System::UnicodeString Value)/* overload */;
void __fastcall SetField(System::TObject* Data, const System::UnicodeString Field, bool Value)/* overload */;

Description

Sets an object field with the given value.

The SetField method sets an object field with the given TObject value.

You can also use one of the overloads of the SetField method to set the object field to a Boolean or a string value.

See Also