-5
TServiceData = class
strict private
FPriority: Integer;
...
public
property Priority: Integer read FPriority write FPriority;
...
end;
TMonthData = class
strict private
function GetServiceData(AIdx: Integer): TServiceData;
public
...
property ServiceData: TServiceData read GetlstServiceData; // incompatible types - Why?
end;
对不起。输入错误。原始我有邮件不兼容的类型
property ServiceData: TServiceData read GetServiceData;
我想知道,为什么DV? –
我没有DV,但我可以尝试猜测几个潜在的原因:也许他们没有阅读基本文档?或者甚至没有给出最小的文本什么TS甚至问什么?也许是因为他没有格式化源代码并且让他们难以阅读?或者因为问题的标题没有传达任何信息?谁知道...... www.catb.org/esr/faqs/smart-questions.html –
我假设你没有复制并粘贴你的实际代码?因为你有一个名为'GetServiceData'的私有方法(带有参数?),但是声明'GetlstServiceData'(IOW,不同的名字)作为getter。 –