手机
当前位置:查字典教程网 >编程开发 >ASP教程 >asp 过滤数组重复数据
asp 过滤数组重复数据
摘要:functionarray_no(cxstr1,cxstr2,cxstr3)iflen(cxstr3)>0thenifnotIsNumeri...

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

【asp 过滤数组重复数据】相关文章:

ASP 过滤数组重复数据函数(加强版)

asp获取数据库的连接属性的方法

asp 过滤简单html代码程序

asp中COM组件中如何连接数据库的代码

asp 之上传漏洞终结篇

asp 查询数据代码

用Asp备份与恢复SQL Server 数据库

access 数据连接程序

asp组件编写准备工作

asp简单文本计数器

精品推荐
分类导航