以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 筛选问题请教. (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=91042) |
-- 作者:fox-man -- 发布时间:2016/9/28 10:25:00 -- 筛选问题请教. 订单表中中10条记录,其中客户A 2条,B3条,C5条 Dim filter As String = "客户= \'A\' " Dim Rows As List(Of DataRow) = DataTables("订单表").Select(filter) msgbox(Rows.count) \'打印结果2 For Each r As Row In Tables("订单表").Rows \'显示结果10 怎么筛选出客户A对应的数据,比如rows对应2条记录.上述For each 会显示10条记录. |
-- 作者:有点蓝 -- 发布时间:2016/9/28 10:39:00 -- Dim filter As String = "客户= \'A\' " Dim Rows As List(Of DataRow) = DataTables("订单表").Select(filter) msgbox(Rows.count) \'打印结果2 For Each r As dataRow In Rows
[此贴子已经被作者于2016/9/28 10:39:28编辑过]
|
-- 作者:fox-man -- 发布时间:2016/9/28 10:43:00 -- 谢谢有点蓝. |