What I do also to avoid duplicates is check the array before you add the new entry to it IF MyArray.Find("YourString") = -1 THEN MyArray.Add("YourString")