在Object Inspector 中看到ADOTable 组件的Connection属性。而ADOTable组件源代码里为什么没有写?
在Object Inspector 中发布的属性应该全是组件源代码中在Published 部分写下才对。 不过ADOTable的Connection属性没有这样也显示出来了,这个为什么? 需要详细的介绍!您们看它的源代码里(Published)没有connection 属性;
[解决办法]
TADOTable = class(TCustomADODataSet) // 继承自TCustomADODataSet
......
TCustomADODataSet = class(TDataSet, IUnknown, RecordsetEventsVt)
published
property Connection: TADOConnection read GetConnection write SetConnection;
......