首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

9年前的老程序,弄得小弟我头痛

2012-03-07 
9年前的老程序,弄得我头痛!一)源码: property CellText[ACol, ARow: Integer]: string read GetCellText

9年前的老程序,弄得我头痛!
一)源码: property CellText[ACol, ARow: Integer]: string read GetCellText;
  报的错误信息:[DCC Error] DateEdit.pas(41): E2188 Published property 'CellText' cannot be of type ARRAY
二)源码: FList: TStringList;
  for I := FList.Count-1 downto 0 do
由于本人没有接触过delphi,问出的问题对于你们来说很简单,对我来说就不同了。希望大家多多帮忙哈。分是一定给的,多少是个心意,大家不要嫌少。呵呵

[解决办法]
1.将CellText这个属性放到public下,而不是published.
2.不明白问题在哪里。
[解决办法]
第2个是不是忘记 FList:= TStringList.creat(nil);
[解决办法]
第一个参数放在()里,别放在[]里
第二个估计是没有创建TStringList 
Flist := TStringList.Create(nil); //创建对象
for I := FList.Count-1 downto 0 do
begin
//循环体
end;
FList.Free; //释放对象

热点排行