Exclude repetitive strings

xiaoxiao2021-03-06  59

'Exclude repetition strings

Function GetNotrepeat (byval arrlist as arraylist) as arraylist

DIM I AS INTEGER: DIM TMPARRAYLIST AS New ArrayList

For i = 0 to arrlist.count - 1

IF NOT TMPARRAYLIST.CONTAINS (Arrlist (i)) THEN

TMPARRAYLIST.ADD (Arrlist (i))

END IF

NEXT

Return TMPARRAYLIST

END FUNCTION

转载请注明原文地址:https://www.9cbs.com/read-112104.html

New Post(0)