我建立了一个窗体,之前运行正常,但是加入一个ADOTable连接到SQL的Table时
一运行就出现以下的错误,
Project communication.exe raised exception class EVariantError
with message'Invalid variant type conversion'.Process stopped.
Use Step or Run to continue.
请各位帮忙解决:
...全文
319打赏收藏
ADO问题?????
我建立了一个窗体,之前运行正常,但是加入一个ADOTable连接到SQL的Table时 一运行就出现以下的错误, Project communication.exe raised exception class EVariantError with message'Invalid variant type conversion'.Process stopped. Use Step or Run to continue. 请各位帮忙解决:
Project communication.exe raised exception class EVariantError
with message'Invalid variant type conversion'.Process stopped.
Use Step or Run to continue.
-----------
这个错误经常是由于一个字符串和NULL相加引起的。
with ADOTable1 do
begin
active:=false;
adotable1.Filtered:=false;
adotable1.filter:='tname='''+edit1.Text+'''';
adotable1.Filtered:=true;
active:=true;
这样试一试应该可以的