(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
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. ___