sql:=copy(sql,1,length(sql)-4);
if b1=false and b2=false then
messagebox(application.handle,'请选择条件查询','信息',mb_ok or mb_iconinformation);
if b1 then
adoquery1.Parameters.ParamByName('s1'):='%'+edit1.text+'%';
if b2 then
adoquery1.Parameters.ParamByName('s2'):='%'+edit2.text+'%';
end;提示:
[错误] Unit1.pas(60): Left side cannot be assigned to
[错误] Unit1.pas(60): Incompatible types: 'TParameter' and 'String'
[错误] Unit1.pas(62): Left side cannot be assigned to
[错误] Unit1.pas(62): Incompatible types: 'TParameter' and 'String'
请问怎么修改,谢谢?
if b1=false and b2=false then
messagebox(application.handle,'请选择条件查询','信息',mb_ok or mb_iconinformation);
if b1 then
adoquery1.Parameters.ParamByName('s1'):='%'+edit1.text+'%';
if b2 then
adoquery1.Parameters.ParamByName('s2'):='%'+edit2.text+'%';
end;提示:
[错误] Unit1.pas(60): Left side cannot be assigned to
[错误] Unit1.pas(60): Incompatible types: 'TParameter' and 'String'
[错误] Unit1.pas(62): Left side cannot be assigned to
[错误] Unit1.pas(62): Incompatible types: 'TParameter' and 'String'
请问怎么修改,谢谢?
解决方案 »
- 求Delphi6和Delphi7的甘特图控件
- 一个难题,如何根据句柄获取窗体的额外字节cbWndExtra???
- 关于dbgrideh中STfilter的问题,选择了filter下拉列表中的数据,但grid中并不过滤!~
- 怎么用ADO,通过SQL语句生成Paradox表的主键?
- 重载的问题
- 有几个小游戏需要开发,有兴趣兼职吗?请互相通知!(同时散分!)
- 为什么我用adoconnection连接access数据库~~在运行时adoconnection要提示我输入密码???
- 保留几位小数的函数是什么啊?Round是取整,但是我想保留两位小数,用什么函数啊?
- 用什么方法可以使窗体最小化到任务栏上呢?
- 怎么实现自己编写的IE中右键打开新窗口后用自己的窗口打开,而不要用 msie!
- 关于ThreadedTimer,求助大家!
- 请大家给我提供一个数据库设计的思路,谢谢
adoquery1.Parameters.ParamByName('s1').value :='%'+edit1.text+'%';
if b2 then
adoquery1.Parameters.ParamByName('s2').Value :='%'+edit2.text+'%';
end;
adoquery1.Parameters.ParamByName('s2').Value :='%'+edit2.text+'%';
if b1=false and b2=false then
messagebox(application.handle,'请选择条件查询','信息',mb_ok or mb_iconinformation);
if b1 then
adoquery1.Parameters.ParamByName('s1').AsString :='%'+edit1.text+'%';
if b2 then
adoquery1.Parameters.ParamByName('s2').AsString :='%'+edit2.text+'%';
end;