Ad

Ad

  • NA
  • 9
  • 0

string search of an array list

Aug 30 2004 8:42 PM
Hi, I have created a new arraylist which stores strings. What I want is when someone enters a desired search string it brings up their entry (if it contains in the array list). The thing is I wouldn't know how to do this. I've tried a foreach loop to see whether the name exists in the arraylist from the the string entry but then i'm not to sure what to do from there. Even so, not even sure if using foreach is correct. I'm fairly new to c# so this is the first time i've met this so if anyone could help I would be very greatful. Thanks

Answers (1)