作业帮 > 综合 > 作业

delphi编程 报错 parameter 'wh' not found?还有这事.

来源:学生作业帮 编辑:拍题作业网作业帮 分类:综合作业 时间:2024/05/16 05:46:29
delphi编程 报错 parameter 'wh' not found?还有这事.
Delphi(Pascal) code
sql1:='select * from Da_setcloum where WH=:wh and col=:col and row:=row';
with qrysetcloum do
begin
close;
sql.Clear;
sql.Add(sql1);
parameters.ParamByName('wh').Value:='DA';
parameters.ParamByName('col').Value:=inttostr(Acol);
parameters.ParamByName('row').Value:=inttostr(Arow);
open;
end;
这代码看似没错啊,为什么会报错?
.找到原因了.adoquery没连到adoconnection.我勒个去你小月月的!
晕!这也行.接分!