以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]集合list的排序问题  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=175745)

--  作者:13568406997
--  发布时间:2022/3/17 14:40:00
--  [求助]集合list的排序问题
list的排序规则是什么,能不能指定条件,比如按某个列进行排序
--  作者:13568406997
--  发布时间:2022/3/17 14:48:00
--  
用GetChildRows获取子表的行,但顺序是乱的


--  作者:有点蓝
--  发布时间:2022/3/17 14:58:00
--  
用select:http://www.foxtable.com/webhelp/topics/0400.htm

Dim drs As List(Of DataRow)
drs = DataTables("子表").
select("[编号] = \'" & Tables("父表").current("编号") & "\'","某个排序列")

--  作者:13568406997
--  发布时间:2022/3/17 14:59:00
--  
好的
谢谢了