RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TObject::FieldAddress Method

Returns the address of a published object field.

Pascal
function FieldAddress(const Name: ShortString): Pointer;
C++
Pointer FieldAddress(const ShortString Name);

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

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

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!