How to disappeared

Discussion in 'AutoCAD' started by Adesu, Aug 5, 2004.

  1. Adesu

    Adesu Guest

    (setq xfile (getreal "\Enter new number: "))
    (setq count 0)
    (while (< count xfile)
    (princ count)
    (setq count (1+ count))
    )
    (princ)

    Command: 'VLIDE Enter new number: 5
    01234Enter new number: 10
    0123456789Enter new number: *Cancel*
    Enter new number: 5
    01234Enter new number: 10
    0123456789Enter new number: 15
    01234567891011121314

    Can anybody help me ,how to disappeared "01234" in front of "Enter new
    number", it number displayed at command,thanks
    Best regards
    Ade Suharna
     
    Adesu, Aug 5, 2004
    #1
  2. Adesu

    Paul Turvill Guest

    Those numbers are there because your routine puts them there, with the
    (princ count) function. If you want the "Enter new number: " prompt on a new
    line, you need to correct the line
    (setq xfile (getreal "\Enter new number: "))
    to read
    (setq xfile (getreal "\nEnter new number: "))

    You forgot the "n" after tne "\" to force a new line.
    ___
     
    Paul Turvill, Aug 5, 2004
    #2
  3. Adesu

    Adesu Guest

    Hi Paul,that right,I've got it,and I never forgot to do it,thanks a lot.
     
    Adesu, Aug 5, 2004
    #3
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.