adoquery2.Close;
adoquery2.SQL.Add('select * from kind2 where kind1=:t1');
adoquery2.Parameters.ParamByName('t1').Value:=trim(TabSheet1.Caption);
adoquery2.Open;运行报错:adoquery2 parameter 't1' not found什么原因呢??
adoquery2.SQL.Add('select * from kind2 where kind1=:t1');
adoquery2.Parameters.ParamByName('t1').Value:=trim(TabSheet1.Caption);
adoquery2.Open;运行报错:adoquery2 parameter 't1' not found什么原因呢??
adoquery2.SQL.Add("select * from kind2 where kind1="+inttostr(t1));
adoquery2.Close;
adoquery2.SQL.Add('select * from kind2 where kind1=:t1 ');
adoquery2.Parameters.ParamByName('t1').Value:=trim(TabSheet1.Caption);
adoquery2.Open;