System.TObject.FieldAddress

From RAD Studio VCL Reference
Jump to: navigation, search

Delphi Information

From System.pas

	function FieldAddress(const Name: ShortString): Pointer; overload;
 
	function FieldAddress(const Name: string): Pointer; overload;


Unit: System

Type: method

Visibility: public

Member Of: TObject

C++ Information

From System.hpp

	void * __fastcall FieldAddress(const System::SmallString<255> & Name);
 
	void * __fastcall FieldAddress(System::UnicodeString Name);


Unit: System

Type: method

Visibility: public

Member Of: TObject

Description

Returns the address of a published object field.


FieldAddress is used internally by the component streaming system to access a specified published field of an object. FieldAddress returns a pointer to the field, if it exists. If the object has no published field by that name, FieldAddress returns nil (Delphi) or NULL (C++).

Programs should access and manipulate fields by using properties instead of FieldAddress.

Personal tools
Translations
Newest Version