delete all non-unique values from array

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BlackMustard
    New Member
    • Aug 2007
    • 88

    delete all non-unique values from array

    how can i ensure that an array consists of only unique values?

    in one of my subroutines i generate an array with a list of search strings, and i want to show all search strings that didn't generate any hit. so when a search for a file with the specified name fails, the name is stored in an array.

    however, in most cases each string is used many times in different locations, and i only want to show each string once. how can i migrate the strings from the array where everything is stored to one where every name is stored only once?

    -tomas
Working...