|
-
May 19th, 2003, 02:43 PM
#1
Thread Starter
Member
Sort Text in multiline text box?
What's the best way to sort text by first or last name in a multiline rich text box at run time. I wanted to add a button similar to Excel/Word. Thanks.
-
May 19th, 2003, 03:21 PM
#2
Fanatic Member
Doesn't matter which textbox control you are using, none of them support sorting their contents. You need to stick their contents into some variable (possibly an array of strings using Split) and sort that, then stick the results back into the textbox.
-
May 19th, 2003, 04:04 PM
#3
PowerPoster
Either do what Slow_Learner said, or maybe think about using a control that will allow you to do it easier like the listbox.
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
|