
<%
'******************************
'函數(shù):MoveR(Rstr)
'參數(shù):Rstr,以逗號(hào)做分隔的數(shù)組
'描述:去除數(shù)組中重復(fù)的項(xiàng)
'示例:MoveR("1,2,2,2,3,3,4,a,45,5,6,6")
'******************************
Function MoveR(Rstr)
Dim i,SpStr
SpStr = Split(Rstr,",")
For i = 0 To Ubound(Spstr)
If I = 0 then
MoveR = MoveR & SpStr(i) & ","
Else
If instr(MoveR,SpStr(i))=0 and i=Ubound(Spstr) Then
MoveR = MoveR & SpStr(i)
Elseif instr(MoveR,SpStr(i))=0 Then
MoveR = MoveR & SpStr(i) & ","
End If
End If
Next
End Function
xxxlei = "1,2,2,2,3,3,4,a,45,5,6,6"
response.write "原來的:" & xxxlei
response.write "處理過的:" & MoveR(xxxlei)
%>
呢 稱: | |
表 情: | |
內(nèi) 容: |
評(píng)論內(nèi)容:不能超過 1000 字,需審核,請(qǐng)自覺遵守互聯(lián)網(wǎng)相關(guān)政策法規(guī)。 |
驗(yàn)證碼: | |
您發(fā)布的評(píng)論即表示同意遵守以下條款:
一、不得利用本站危害國家安全、泄露國家秘密,不得侵犯國家、社會(huì)、集體和公民的合法權(quán)益;
二、不得發(fā)布國家法律、法規(guī)明令禁止的內(nèi)容;互相尊重,對(duì)自己在本站的言論和行為負(fù)責(zé);
三、本站對(duì)您所發(fā)布內(nèi)容擁有處置權(quán)。