Results 1 to 3 of 3

Thread: Carriage return.....

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    Virginia Beach
    Posts
    66

    Question

    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

  2. #2
    Guest

    Wink

    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

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    Virginia Beach
    Posts
    66

    Thumbs up

    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
  •  



Click Here to Expand Forum to Full Width