【filter2】PB数据窗口中用setfilter()多个条件过滤怎么写...
答案:2 悬赏:0 手机版
解决时间 2021-02-21 23:18
- 提问者网友:龅牙恐龙妹
- 2021-02-20 23:04
【filter2】PB数据窗口中用setfilter()多个条件过滤怎么写...
最佳答案
- 五星知识达人网友:第四晚心情
- 2021-02-21 00:06
【答案】 就是定义一个变量,拼多条件串给它.
例子:
string DWfilter2
DWfilter2 = cust_qty > 100 and cust_code >30//记住双引号;就是where条件后面的语句
dw_Employee.SetFilter(DWfilter2)
dw_Employee.Filter( ) 追问: string condition condition= productiveyear='+sle_1.text+' and price >'+sle_2.text+' and price 追答: 你调试一下程序.加个断点 然后走到condition 的那里的时候,把 值粘贴出来 我看看
例子:
string DWfilter2
DWfilter2 = cust_qty > 100 and cust_code >30//记住双引号;就是where条件后面的语句
dw_Employee.SetFilter(DWfilter2)
dw_Employee.Filter( ) 追问: string condition condition= productiveyear='+sle_1.text+' and price >'+sle_2.text+' and price 追答: 你调试一下程序.加个断点 然后走到condition 的那里的时候,把 值粘贴出来 我看看
全部回答
- 1楼网友:千杯敬自由
- 2021-02-21 01:05
我学会了
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯