-
string manipulation
i have a textbox that contains words and every word is separated by a ; my problem is how would i separately input them to the other textboxes?
here is the concept.
textbox1 contains "apple;orange;pineapple;grapes"
textbox1 will not have the same contents.
on the click of a button
textbox2 will contain apple
textbox3 will contain orange
textbox4 will contain pineapple
textbox5 will contain grapes
-
Re: string manipulation
Check out the Split function of a string.
-
Re: string manipulation
Use
Code:
MyString.Split(";"c)
to turn it into an array and assign the other textboxes each element.