Delphi What is the FieldAddress Property in DelphiVCL.Application?

FireWind

Свой
Регистрация
2 Дек 2005
Сообщения
1,957
Реакции
1,199
Credits
4,009
What is the FieldAddress Property in DelphiVCL.Application?
By Muhammad Azizul Hakim July 21, 2021

Use the FieldAddress property or DelphiVCL.Application.FieldAddress to return 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.

Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.FieldAddress using dir() command:
Python:
import DelphiVCL
 
dir(DelphiVCL.Application.FieldAddress)
See the responses in our Windows command prompt:
1626850228436.png
You can also read short information about the DelphiVCL.Application.FieldAddress using the print() command:
Python:
print(DelphiVCL.Application.FieldAddress)
print(DelphiVCL.Application.FieldAddress.__doc__)
See the responses in our Windows command prompt:
1626850279481.png