且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Delphi从子窗体更新父窗体控件

更新时间:2023-12-06 10:15:58

这是不正确的:

fForm := Form11.Create(Self)

应该是这样的:

fForm := TForm11.Create(Self)

TForm11 ,而不是 Form11 。要创建对象,必须通过类调用构造函数。

That is, TForm11, not Form11. To create an object, you have to call the constructor via the class.