how can i check if a string is completely entered into array list or not ?
Check If String Exists In ArrayList
Page 1 of 15 Replies - 797 Views - Last Post: 14 April 2011 - 08:05 AM
Replies To: Check If String Exists In ArrayList
#2
Re: Check If String Exists In ArrayList
Posted 14 April 2011 - 07:05 AM
Can you explain what you mean by 'complete'?
#3
Re: Check If String Exists In ArrayList
Posted 14 April 2011 - 07:07 AM
If I understand your question, it's just myList.Contains("The string");
#4
Re: Check If String Exists In ArrayList
Posted 14 April 2011 - 07:10 AM
#5
Re: Check If String Exists In ArrayList
Posted 14 April 2011 - 07:49 AM
Loop through the array and check if each element is equal to the string in question.
There is no grey area. You have either added it or you haven't. There is no measure of "completeness"
There is no grey area. You have either added it or you haven't. There is no measure of "completeness"
#6
Re: Check If String Exists In ArrayList
Posted 14 April 2011 - 08:05 AM
Or as Tryparse already mentioned, .Contains works too. Also don't use ArrayLists. Use the generic List<string>.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote






|