展会信息港展会大全

asp 过滤数组重复数据 android软件开发教程
来源:互联网   发布日期:2016-03-01 11:04:09   浏览:1375次  

导读: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) the...

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

赞助本站

人工智能实验室

相关热词: 开发 编程 android

AiLab云推荐
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港