最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp 过滤数组重复数据
时间:2022-07-02 22:37:33 编辑:袖梨 来源:一聚教程网
function array_no(cxstr1,cxstr2,cxstr3)
if len(cxstr3) > 0 then
if not IsNumeric(cxstr3) then
array_no = "对不起,参数3类型必需为数字"
Exit Function
end if
else
array_no = "对不起,参数3类型必需为数字"
Exit Function
end if
if isarray(cxstr1) then
array_no = "对不起,参数1不能为数组"
Exit Function
end if
if cxstr1 = "" or isempty(cxstr1) then
array_no = "没有数据"
Exit Function
end if
ss = split(cxstr1,cxstr2)
cxs=cxstr2&ss(0)&cxstr2
sss=cxs
for m = 0 to ubound(ss)
cc = cxstr2&ss(m)&cxstr2
if instr(sss,cc)=0 then
sss = sss&ss(m)&cxstr2
end if
next
array_no = right(sss,len(sss)-len(cxstr2))
array_no = left(array_no,len(array_no)-len(cxstr2))
if cxstr3 <> 0 then
cx_sp = split(array_no,cxstr2)
if cxstr3 > ubound(cx_sp) then
array_no = cx_sp(ubound(cx_sp))
else
array_no = cx_sp(cxstr3)
end if
end if
end function%>
相关文章
- 不朽箴言新手推图阵容怎么搭配 新手推图阵容搭配推荐 09-19
- 原神月落银怎么采-月落银采集路线分享 09-19
- 三国望神州乐进怎么培养 乐进培养攻略 09-19
- 三国望神州关羽技能是什么 关羽技能解析 09-19
- 异人之下玄黄玉怎么获得 玄黄玉获取攻略 09-19
- 蔚蓝档案青辉石怎么获得 案青辉石快速获得方法 09-19