龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > web编程 > asp编程 >

asp 过滤数组重复数据

时间:2012-12-31 22:56来源:未知 作者:admin 点击:
分享到:
提供一款asp 过滤数组重复数据源码代码下载,这是来自互联网的哦,哈哈。 提供一款asp 过滤数组重复数据源码代码下载,这是来自互联网的哦,哈哈。 functionarray_no(cxstr1,cxstr2,cxstr3)
提供一款asp 过滤数组重复数据源码代码下载,这是来自互联网的哦,哈哈。

提供一款asp 过滤数组重复数据源码代码下载,这是来自互联网的哦,哈哈。

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%>


精彩图集

赞助商链接