How would I use a for loop to go through a listBox and remove words before a certain character?
For example if my listBox contains items resembling the following:
','ae5e87df42fa5921
And I want to remove everything before the ',' how would I do so with each item in the listBox?
Thanks!
In a for loop you can simply call
item = item.Substring(item.LastIndexOf("','"))Like so:
Edit:
Here you have full example, which works. Just add the ListBox and the button, and assign the event to it’s
Clickhandler:It IS working.