当前位置: 代码迷 >> PB >> 过滤表达式有关问题
  详细解决方案

过滤表达式有关问题

热度:74   发布时间:2016-04-29 09:55:59.0
过滤表达式问题
ls_filter   =   "column1   like   '% "   +   sle_1.text   +   "% ' "
ls_filter   +=   "   and   column2   like   '% "   +   sle_2.text   +   "% ' "
dw_1.setfilter(ls_filter)
dw_1.filter()

这段过滤代码错在哪里,总是提示“excepting   TRUE/FALSE   expression "

------解决方案--------------------
ls_filter = "(column1 like '% " + sle_1.text + "% ') "
ls_filter += " and (column2 like '% " + sle_2.text + "% ') "
dw_1.setfilter(ls_filter)
dw_1.filter()

------解决方案--------------------
正确
结吧
  相关解决方案