with ADOTable1 do
begin
active:=true;
adotable1.Filtered:=false;
adotable1.filter:='tname='''+edit1.Text+'''';
adotable1.Filtered:=true;
可不可以这样用?
begin
active:=true;
adotable1.Filtered:=false;
adotable1.filter:='tname='''+edit1.Text+'''';
adotable1.Filtered:=true;
可不可以这样用?
解决方案 »
- dll中 无法sendmessage 给主程序
- 关于TChart的一个问题,请大虾们帮忙,谢谢!
- 请教:关于色彩还原算法,在线急等,问题解决马上放分!!!
- 55555555555555!求救!
- 怎么设计一个表啊?(很弱的问题,但我不会,没接触过)
- 怎么用Dephi创建数据库文件?
- 如何生成拖离delphi环境的可执行文件
- delphi 怎么判断一个页面是否存在
- 急!请教一个bde别名问题?
- org.apache.coyote.http11.AbstractHttp11Processor process INFO: Error parsing HTT
- 北京的朋友请问11月份去北京好不好找工作delphi,bcb sql server
- 急,如何用delphi实现简繁体内码转换!求源码!万分感谢
功能一样,用法也一样。如果不通,是这个语句的问题:adotable1.filter:='tname='+''''+edit1.Text+'''';
Project communication.exe raised exception class EVariantError
with message'Invalid variant type conversion'.Process stopped.
Use Step or Run to continue.
这是怎么回事。
我试了新建一个窗体什么控件也没加只加了一个ADOTable控件,设了它的connectstring和adotablename属性运行时也会出现上面的错误,到底怎么回事?????
begin
active:=true;
adotable1.Filtered:=false;
adotable1.filter:='tname='+edit1.Text;
adotable1.Filtered:=true;
end;
这样是正确的!
:)
看看是不是你的delphi有问题了
with ADOTable1 do
begin
active:=true;
adotable1.Filtered:=false;
adotable1.filter:='tname='+edit1.Text;
adotable1.Filtered:=true;
end;
应该把你的那些引号去掉的