RAD Studio VCL Reference
|
Returns the address of a published object field.
function FieldAddress(const Name: ShortString): Pointer; overload; function FieldAddress(const Name: string): Pointer; overload;
Pointer FieldAddress(const ShortString Name); Pointer FieldAddress(const string 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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|