Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
search array for dupes add item if not found
#1
If I have a dialog with a combo box which is populated with items loaded from a text file, (one item per line in the text file)
an array is created from this file.

The user has the option to select an item from the drop down list presented by the combo box or can enter their own value into the list box.

If the user enters a value of their own into the combo box, what would be the best way to check that this is not already in the array and if it is not present add it to the array.

Thanks in advance for any help.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)