一
一成
Unregistered / Unconfirmed
GUEST, unregistred user!
var
edit111,edit222:integer;
begin
edit111:=strtoint(edit1.text);
edit222:=strtoint(edit2.Text);
if cbb1.text='jia' then edit3.text:=inttostr(jia(edit111,edit222))
else if cbb1.text='jian' then edit3.Text:=inttostr(jian(edit111,edit222))
else
edit3.text:=inttostr(chen(edit111,edit222));
end;
我把if语句改成下面的case语句就出错了
{ case combbbox1.Text of
'jia':edit3.Text:=inttostr(jia(edit111,edit222));
'jian':edit3.Text:=inttostr(jian(edit111,edit222));
'chen':edit3.text:=inttostr(chen(edit111,edit222));
end; }
edit111,edit222:integer;
begin
edit111:=strtoint(edit1.text);
edit222:=strtoint(edit2.Text);
if cbb1.text='jia' then edit3.text:=inttostr(jia(edit111,edit222))
else if cbb1.text='jian' then edit3.Text:=inttostr(jian(edit111,edit222))
else
edit3.text:=inttostr(chen(edit111,edit222));
end;
我把if语句改成下面的case语句就出错了
{ case combbbox1.Text of
'jia':edit3.Text:=inttostr(jia(edit111,edit222));
'jian':edit3.Text:=inttostr(jian(edit111,edit222));
'chen':edit3.text:=inttostr(chen(edit111,edit222));
end; }