|
-
Aug 14th, 2011, 10:28 AM
#1
Thread Starter
Hyperactive Member
Setting Tab Stops for Strings
This is in a RichTextBox.
I'm making a string of sports stats and I need to have them aligned neatly in the RichTextBox. Here is an example:
str = "12/24 (tab) 225 yards (tab) 2 TDs (tab) 2 INTs"
When I use the vbTab constant in place of (tab) I run into problems as the size of the text in each column can be different which makes the tab not balance out correctly.
I need to stop specifically at say, the 50th character no matter what the length of the characters before it. Something like TAB() for printing but this doesn't seem to work for strings.
Thanks,
neef
Intermediate Level Programmer Extraordinaire 
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
|