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

请高手帮小弟我看看什么地方出了有关问题

2012-03-23 
请高手帮我看看什么地方出了问题?if ((edit16.Text6.5) or (edit16.Text8) or (edit16.Text10) o

请高手帮我看看什么地方出了问题?
if ((edit16.Text='6.5') or (edit16.Text='8') or (edit16.Text='10') or (edit16.Text='12')) and ((strtofloat(label54.Caption) >= -7) and (strtofloat(label54.Caption) <= 7)) then
begin
label58.Caption:='合格'
else
label58.Caption:='不合格';
end

else if ((edit16.Text='14') or (edit16.Text='16') or (edit16.Text='18') or (edit16.Text='20')) and ((strtofloat(label54.Caption) >= -7) and (strtofloat(label54.Caption) <= 7)) then
begin
label58.Caption:='合格'
else
label58.Caption:='不合格';
end
  end;
不能执行啊~!初学,不太懂~

[解决办法]

Delphi(Pascal) code
beginlabel58.Caption:='合格'elselabel58.Caption:='不合格';end 

热点排行