D
delphi_hzj
Unregistered / Unconfirmed
GUEST, unregistred user!
var Mybh:string;
begin
Mybh:=edit1.text;
Query1.SQL.text:='select sum(je) as Myje from cd.dbf where Bh=:mybh';
query1.open;
edit11.text:=query1.fieldByname('Myje').asstring;
query1.close;
end;
以上代码在试运行时。为什么有错误:Query1:Field 'Mybh' is of an unknown type.
begin
Mybh:=edit1.text;
Query1.SQL.text:='select sum(je) as Myje from cd.dbf where Bh=:mybh';
query1.open;
edit11.text:=query1.fieldByname('Myje').asstring;
query1.close;
end;
以上代码在试运行时。为什么有错误:Query1:Field 'Mybh' is of an unknown type.