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

求大神救 [Error] Unit2.pas(1160): Incompatible types: 'String' and 'Integer',该如何解决

2012-05-27 
求大神救 [Error] Unit2.pas(1160): Incompatible types: String and Integerif(Label113.ColorclGre

求大神救 [Error] Unit2.pas(1160): Incompatible types: 'String' and 'Integer'
if(Label113.Color=clGreen) then
 yc[96]:=1
 else
 yc[96]:=0;


 if(Label190.Color=clGreen) then
 yc[97]:=1
 else
 yc[97]:=0;


 if(Label115.Color=clGreen) then
 yc[98]:=1
 else
 yc[98]:=0;

if(Label115.Color=clGreen) then
yc[99]:=1
else
yc[99]:=0;

if(Label64.Color=clGreen) then
yc[100]:=1
else
yc[100]:=0;


if(Label8.Color=clGreen) then
 yc[101]:=1
 else
 yc[101]:=0;
加入这段代码之后就出现了,上面的问题
急求大神帮忙啊

[解决办法]
yc[96]:=1
改为
 yc[96]:='1'

其它类推试试?

热点排行