类型转换错误
with ADOTable1 do
begin
active:=true;
adotable1.Filtered:=false;
adotable1.filter:='tname='+edit1.Text;
adotable1.Filtered:=true;
end;
应该把你的那些引号去掉的
但是一运行就出现以下的错误,
Project communication.exe raised exception class EVariantError
with message'Invalid variant type conversion'.Process stopped.
Use Step or Run to continue.
这是怎么回事。
我试了新建一个窗体什么控件也没加只加了一个ADOTable控件,设了它的connectstring和adotablename属性运行时也会出现上面的错误,到底怎么回事?????