I need help with my code.
I have a ListBox which contains lines of text like this:
"hello my friends, how r u?","today is good","hey"
"I'm fine","and you","doing"
"have a nice day","thanks","man"
I want to remove sub-strings using SubString() (or another method, it doesn't matter) for this ListBox items.
I want to see this output in my ListBox (same ListBox, not a new) when I compile my code.
hello my friends, how r u?
I'm fine
have a nice day
Note: I wanted to share my code but I couldn't produce any, sorry.
SubString()method doesn't do what I think you think it does. It takes a string, e.g "Hello World" and makes a separate string out of it with 2 indexes. So"Hello World".SubString(0, 3);would return the characters from index 0 up to but excluding index 3, in this case "Hel". See more here