|
-
Jan 28th, 2010, 10:22 AM
#1
Thread Starter
Lively Member
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
-
Jan 28th, 2010, 10:34 AM
#2
Re: string manipulation
Check out the Split function of a string.
-
Jan 28th, 2010, 10:35 AM
#3
Re: string manipulation
Use
Code:
MyString.Split(";"c)
to turn it into an array and assign the other textboxes each element.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|