On a button click, I want to select all items in a listbox, the items will look like this for example: '14/5', then I want to extract the digits on each side of the slash for each item. The digits will be different every time and can consist of any number of digits. Do I need a loop to be sure to get all items?
string votes = LBVotes.Items.ToString();
string tID = votes.Trim().Substring(0, votes.Trim().IndexOf('/')); //digits before the slash
//string mID = how do I extract the digits after the slash?
if (!string.IsNullOrEmpty(votes))
{
//use every tID and mID separately
}
Thankful for help!
...
Go to the complete details ...