我建立了一个窗体,之前运行正常,但是加入一个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.
请各位帮忙解决:
解决方案 »
- delphi 动态创建toolbar中的按钮
- 用 ttime 作 时间 比较 问题
- 怎样才能清空PaintBox里的图形?
- 通过计算机的Com1口向外部的显示设备传送数据,请问怎么去实现呢?
- 只能发贴不能回复,郁闷
- 模仿IE的地址输入框
- 100分,急、急、急 帮帮小弟!小弟用delphi6开发clint/sever,应该运行哪个程序啊,是ibconsole吗,步骤是怎样的啊
- 100分求教:用什么控件可以进行可视化网页设计
- 请各位高手指点!
- 如何将一个32位的无符号整型数按高16位和低16位拆成两个16位的整型数?
- 急问:怎么样把从oracle查询得到的数据保存到本地的dbf文件中?
- 如何实现时间的相减,并存入数据库?
begin
active:=true;
adotable1.Filtered:=true;
adotable1.filter:='tname='''+edit1.Text+'''';
adotable1.Filtered:=false;
可不可以这样用?
with message'Invalid variant type conversion'.Process stopped.
Use Step or Run to continue.
-----------
这个错误经常是由于一个字符串和NULL相加引起的。
begin
active:=False;
adotable1.filter:='tname='+edit1.Text;
adotable1.Filtered:=true;
试试!
begin
active:=false;
adotable1.Filtered:=false;
adotable1.filter:='tname='''+edit1.Text+'''';
adotable1.Filtered:=true;
active:=true;
这样试一试应该可以的