Show: Delphi C++
Display Preferences

System.TObject.FieldAddress

From XE2 API Documentation
Jump to: navigation, search

Delphi

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

C++

void *  __fastcall FieldAddress(const ShortString &Name);
void *  __fastcall FieldAddress(const String Name);

Properties

Type Visibility Source Unit Parent
function public
System.pas
systobj.h
System 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
Previous Versions
Translations