procedure Tfrmcpxg.btnokxgClick(Sender: TObject);
begin
if edtsrcm.Text='' or edtxgdj.Text='' or comboxgcl.Text='' then
messagedlg('输入信息不完整!请重新输入!',mterror,[mbok],0)
else
begin
adoqueryxg.Close;
adoqueryxg.SQL.Clear;
adoqueryxg.SQL.Add('update dishs set 菜名='+edtsrcm.Text+',单价='+strtofloat(edtxgdj.Text)+',菜类='+comboxgcl.Text+',备注='+memoxgbz.Text+'where 菜号='+edtxsch.Text);
adoqueryxg.Open;
end;
有错误
[Error] ucpxg.pas(70): Operator not applicable to this operand type
[Error] ucpxg.pas(70): Operator not applicable to this operand type
[Error] ucpxg.pas(76): Incompatible types: 'String' and 'Extended'delphi编译错误String
begin
if edtsrcm.Text='' or edtxgdj.Text='' or comboxgcl.Text='' then
messagedlg('输入信息不完整!请重新输入!',mterror,[mbok],0)
else
begin
adoqueryxg.Close;
adoqueryxg.SQL.Clear;
adoqueryxg.SQL.Add('update dishs set 菜名='+edtsrcm.Text+',单价='+strtofloat(edtxgdj.Text)+',菜类='+comboxgcl.Text+',备注='+memoxgbz.Text+'where 菜号='+edtxsch.Text);
adoqueryxg.Open;
end;
有错误
[Error] ucpxg.pas(70): Operator not applicable to this operand type
[Error] ucpxg.pas(70): Operator not applicable to this operand type
[Error] ucpxg.pas(76): Incompatible types: 'String' and 'Extended'delphi编译错误String
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货