首页 > 开发 > 综合 > 正文

排除重复的字符串

2024-07-21 02:23:28
字体:
来源:转载
供稿:网友
'排除重复的字符串

function getnotrepeat(byval arrlist as arraylist) as arraylist

dim i as integer : dim tmparraylist as new arraylist

for i = 0 to arrlist.count - 1

if not tmparraylist.contains(arrlist(i)) then

tmparraylist.add(arrlist(i))

end if

next

return tmparraylist

end function


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表