以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 选择行的问题 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=129912) |
-- 作者:304376480 -- 发布时间:2019/1/8 16:32:00 -- 选择行的问题 老师,您好! Dim kcbz As List(of DataRow) = DataTables("销售单").Select("数量 > \'" & e.DataRow("当前库存") & "\'") 我想筛选出 ‘数量’ 大于 ‘当前库存’ 的行,然后通过 kcbz.count属性来判断是否允许出库 上面在段代码如果放在DataColChanged 中则很好表述,但要是放在按扭中,应该怎么写呢?e.DataRow("当前库存") 应该怎么表述?
|
-- 作者:有点甜 -- 发布时间:2019/1/8 16:56:00 -- Dim kcbz As List(of DataRow) = DataTables("销售单").Select("数量 > 当前库存")
或者
Dim kcbz As List(of DataRow) = DataTables("销售单").Select("数量 > \'" & tables("表a").current("当前库存") & "\'") |
-- 作者:304376480 -- 发布时间:2019/1/8 17:05:00 -- 可以了,没想到如此简单,哈哈!感谢! 第二种不行,current是用户鼠标选择的当前行,我试过了不正确
|