i am coding a program in vb.NET, it will be used for people to vot for their favourite food. I have let the users input the name of favoutie foods into an inputbox and tehn store the name of each favoutie food into an array called foodarray.

Then the array outputs each item inside it into a checkedlistbox, which will be used to vote from by the voters.

The problem is that i want to add 1 to the value of the name of the food each time it is selected by a user. How do i do this, i want to add 1 to the names in the foodarray to find out how many votes each food gets.

thanks a lot

You could also use a dictionary to check spelling

commented: Hahahah :) +10
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.