Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共3 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:求助,字符串去重。

1楼
夜点蚊香 发表于:2023/12/12 9:22:00
“你好,我的,你好”  求助哪个函数可以字符串去重。
设定字符串是一个集合  str() 

2楼
有点蓝 发表于:2023/12/12 9:52:00
dim ss() as string = "你好,我的,你好".split(",")
dim lst as new list(of string)
for i as integer = 0 to ss.length - 1
if lst.contains(ss(i)) = false then lst.add(ss(i))
next

msgbox(string.join(",",lst.toarray))
3楼
y2287958 发表于:2023/12/12 14:27:00
Dim 字符串 As String = "你好,我的,你好"
Output.Show (String.join(vbcrlf, 字符串.Split (",").distinct))
共3 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .01563 s, 2 queries.