How to get carriage return in mtext

Discussion in 'AutoCAD' started by Conan Witzel, Jun 17, 2004.

  1. Conan Witzel

    Conan Witzel Guest

    I am sure this sounds very stupid, but I need to insert some "returns" in my
    mtext. I tried:

    mytext & chr$(13)

    and

    mytext & "\n"

    But it still puts all of my text on one line.

    I can't seem to find anything in the help file. Te examples show only a
    single line.

    Thanks,
    Conan Witzel
     
    Conan Witzel, Jun 17, 2004
    #1
  2. Conan Witzel

    wivory Guest

    Embed "\P" in your text.

    Regards

    Wayne Ivory
    IT Analyst Programmer
    Wespine Industries Pty Ltd
     
    wivory, Jun 17, 2004
    #2
  3. Conan Witzel

    Ed Jobe Guest

    You could also use one of the vb constants. vbCr is a carriage return which puts the cursor to pos 0 on the same line, vbLf moves the cursor to its current position on the next line, vbCrLf puts the cursor at pos 0 on the next line.

    --
    ----
    Ed
    ----
    Embed "\P" in your text.

    Regards

    Wayne Ivory
    IT Analyst Programmer
    Wespine Industries Pty Ltd
     
    Ed Jobe, Jun 17, 2004
    #3
  4. Conan Witzel

    Ed Jobe Guest

    Oops, still early in the morning, I didn't notice "mtext". I need a cup o' joe.

    --
    ----
    Ed
    ----
    You could also use one of the vb constants. vbCr is a carriage return which puts the cursor to pos 0 on the same line, vbLf moves the cursor to its current position on the next line, vbCrLf puts the cursor at pos 0 on the next line.

    --
    ----
    Ed
    ----
    Embed "\P" in your text.

    Regards

    Wayne Ivory
    IT Analyst Programmer
    Wespine Industries Pty Ltd
     
    Ed Jobe, Jun 17, 2004
    #4
  5. Conan Witzel

    Conan Witzel Guest

    Thanks,

    Conan
     
    Conan Witzel, Jun 17, 2004
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.