|
-
Apr 17th, 2000, 04:18 AM
#1
Thread Starter
Lively Member
If I have a string that is 100 words(not characters)long, is there a way when that string (from a rich text box) is printed or emailed to determine where the carriage return will happen and that on the next line to add spaces before the rest of the string for an indention? Hope this makes sense.
Cady
-
Apr 17th, 2000, 06:40 AM
#2
Ok something like
Pos = Instr(stringname,vbCR,1)
Gives position of CR, do a left to Pos-1 to get the words etc before the CR, or Mid to get after the CR, there is probably a vbTab or a char you can chuck in to insert a tab for indenting
Hope it helps
-
Apr 17th, 2000, 10:04 PM
#3
Thread Starter
Lively Member
Thanks! I will give this a try.
Cady
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
|