Delphi7关于declaration expected but if found 10
出现declarationexpectedbutiffound,怎样解决?procedureTForm1.BitBtn1Click(Sender:TObject);ifA...
出现declaration expected but if found,怎样解决?procedure TForm1.BitBtn1Click(Sender: TObject);
if ADOTable1.locate('学号',Edit1.Text,[ ]) then
Application.MessageBox('乱七八糟','有',MB_OK+MB_ICONSTOP);
else
begin
ADOTable1.Append;
ADOTable1.FieldByName('编号').AsString := Edit1.Text;
ADOTable1.FieldByName('姓名').AsString := Edit2.Text;
ADOTable1.FieldByName('文科').AsFloat := StrToFloat( Edit3.Text);
ADOTable1.FieldByName('理科').AsFloat := StrToFloat( Edit4.Text);
ADOTable1.Post;
end; 展开
if ADOTable1.locate('学号',Edit1.Text,[ ]) then
Application.MessageBox('乱七八糟','有',MB_OK+MB_ICONSTOP);
else
begin
ADOTable1.Append;
ADOTable1.FieldByName('编号').AsString := Edit1.Text;
ADOTable1.FieldByName('姓名').AsString := Edit2.Text;
ADOTable1.FieldByName('文科').AsFloat := StrToFloat( Edit3.Text);
ADOTable1.FieldByName('理科').AsFloat := StrToFloat( Edit4.Text);
ADOTable1.Post;
end; 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询