问一下 我该怎么改下面
时间:2011-12-27
来源:互联网
             if (RadioButton4.Checked= True ) then
begin
table1.Close;
table1.Filter:=' ShopId >='+edit2.Text+' and ShopId =<'''+edit3.Text+''''+'and State=''营业''';
table1.Filtered:=true;
table1.Open;
if table1.RecordCount=0 then
begin
showmessage('抱歉,没有你要找的序列号!!!');
table1.Close ;
table1.Filter:=' ShopId <>NULL';
table1.Filtered:=true;
table1.Open ;
end;
end;
            
            begin
table1.Close;
table1.Filter:=' ShopId >='+edit2.Text+' and ShopId =<'''+edit3.Text+''''+'and State=''营业''';
table1.Filtered:=true;
table1.Open;
if table1.RecordCount=0 then
begin
showmessage('抱歉,没有你要找的序列号!!!');
table1.Close ;
table1.Filter:=' ShopId <>NULL';
table1.Filtered:=true;
table1.Open ;
end;
end;
作者: dswdwq 发布时间: 2011-12-27
             table1.Open;
if RadioButton4.Checked then
begin
table1.Filter:='ShopId >='+Quotedstr(edit2.Text)+' and ShopId <='+Quotedstr(edit3.Text)+' and State=''营业''';
table1.Filtered:=true;
if table1.RecordCount=0 then
begin
showmessage('抱歉,没有你要找的序列号!!!');
table1.Filtered:=false;
end;
end;
            if RadioButton4.Checked then
begin
table1.Filter:='ShopId >='+Quotedstr(edit2.Text)+' and ShopId <='+Quotedstr(edit3.Text)+' and State=''营业''';
table1.Filtered:=true;
if table1.RecordCount=0 then
begin
showmessage('抱歉,没有你要找的序列号!!!');
table1.Filtered:=false;
end;
end;
作者: kaikai_kk 发布时间: 2011-12-28
             Delphi(Pascal) code
            if (RadioButton4.Checked= True ) then begin table1.Close; {其实用下面这个感觉比较清晰 table1.Filter:=format('(ShopId >= %s) and (ShopId =< %s) and (State="营业")', [edit2.Text, edit3.Text]);} table1.Filter:='(ShopId >= '+edit2.Text+') and (ShopId =<'+edit3.Text+') and (State="营业")'; table1.Filtered:=true; table1.Open; if table1.RecordCount=0 then begin showmessage('抱歉,没有你要找的序列号!!!'); table1.Close ; table1.Filter:=' ShopId <>NULL'; table1.Filtered:=true; table1.Open ; end; end;
作者: imitator 发布时间: 2011-12-28
             晕,ShopId到底是什么类型的啊?难道不是Integer吗?
怎么还有ShopId <> NULL...
            怎么还有ShopId <> NULL...
作者: imitator 发布时间: 2011-12-28
 相关阅读 更多  
      
    热门阅读
-   office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具 office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具阅读:74 
-   如何安装mysql8.0 如何安装mysql8.0阅读:31 
-   Word快速设置标题样式步骤详解 Word快速设置标题样式步骤详解阅读:28 
-   20+道必知必会的Vue面试题(附答案解析) 20+道必知必会的Vue面试题(附答案解析)阅读:37 
-   HTML如何制作表单 HTML如何制作表单阅读:22 
-   百词斩可以改天数吗?当然可以,4个步骤轻松修改天数! 百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!阅读:31 
-   ET文件格式和XLS格式文件之间如何转化? ET文件格式和XLS格式文件之间如何转化?阅读:24 
-   react和vue的区别及优缺点是什么 react和vue的区别及优缺点是什么阅读:121 
-   支付宝人脸识别如何关闭? 支付宝人脸识别如何关闭?阅读:21 
-   腾讯微云怎么修改照片或视频备份路径? 腾讯微云怎么修改照片或视频备份路径?阅读:28 















