以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 怎么实现不重复值统计总数呢? (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=186534) |
-- 作者:cnsjroom -- 发布时间:2023/5/9 17:17:00 -- 怎么实现不重复值统计总数呢? Dim Products As List(Of String) Products = DataTables("问题台账").GetValues("guid") For Each Product As String In Products output.show(Product) Next 运行得到 1b39a30c-b5f3-4250-9a3f-6bc0baf52e8c 1b93d35c-09b6-49e2-84cc-c4f7ec67fb7a 4398cf19-1733-4808-99ee-8d2dc977accc 674bea6b-fad3-424b-9081-3c5dad377192 73fa0388-8da3-40b4-bf27-580f1e000f3d 939c0845-5f5b-4728-803d-8961e300e42f 983761b4-4bd4-4321-8d9c-8e9e06cf32f2 9d3a6910-c2eb-45f3-9563-4f5bc269456a ac4b3585-de21-4393-9a28-7a23fe005c61 c5d70451-ecd1-43c3-ac50-5075f6cbdb2b 怎么实现不重复值统计总数呢? 想得到:10 |
-- 作者:有点蓝 -- 发布时间:2023/5/9 17:27:00 -- 基础问题啊:http://www.foxtable.com/webhelp/topics/0217.htm |