
<%
'******************************
'函數(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 "原來(lái)的:" & xxxlei
response.write "處理過(guò)的:" & MoveR(xxxlei)
%>
您發(fā)布的評(píng)論即表示同意遵守以下條款:
一、不得利用本站危害國(guó)家安全、泄露國(guó)家秘密,不得侵犯國(guó)家、社會(huì)、集體和公民的合法權(quán)益;
二、不得發(fā)布國(guó)家法律、法規(guī)明令禁止的內(nèi)容;互相尊重,對(duì)自己在本站的言論和行為負(fù)責(zé);
三、本站對(duì)您所發(fā)布內(nèi)容擁有處置權(quán)。