asp下去除数组中重复项的方法
代码如下:<%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 E
用户评论