Delphi VCL.Application中的 FieldAddress 方法是什么?

266 阅读1分钟

使用FieldAddress方法或DelphiVCL.Application.FieldAddress来返回一个已发布对象字段的地址。

FieldAddress在内部被组件流系统使用,用于访问一个对象的指定发布字段。如果字段存在的话,FieldAddress返回一个指向该字段的指针。如果该对象没有以该名称发布的字段,FieldAddress返回nil(Delphi)或NULL(C++)。

程序应该通过使用属性而不是FieldAddress来访问和操作字段。

让我们使用dir()命令浏览DelphiVCL.Application.FieldAddress的所有属性、方法和内置属性。

import DelphiVCL

dir(DelphiVCL.Application.FieldAddress)

请看我们的Windows命令提示符中的响应。

0dir-7653679

你也可以使用print()命令来阅读DelphiVCL.Application .FieldAddress的简短信息。

print(DelphiVCL.Application.FieldAddress)
print(DelphiVCL.Application.FieldAddress.__doc__)

请看我们的Windows命令提示符中的响应。

0print-1380671

查看DelphiVCL,它可以轻松地让你使用Python为Windows建立GUI。

The postWhat is the FieldAddress Method in DelphiVCL.Application?first appeared onPython GUI.