PDA

View Full Version : Last question for this lisp.......



alextu
9th Jun 2004, 09:57 pm
Sorry....too many questions, I am new in autoLisp....
but, I think this will be the last question for this lisp...almost there.
How can I make the "Y" become default answer. and press enter instead of type Y in?

(initget 1 " Y N ")
(setq tail (getkword "\n Do you want the tail? Yes or No [Y] : "))


Thank you

David Bethel
9th Jun 2004, 10:11 pm
(initget "Yes No")
(if (/= "No" (getkword "\n Do you want the tail? Yes or No [Y] : "))
(setq tail "Yes"))


-David

alextu
9th Jun 2004, 10:33 pm
Thank you, David, you helped me a lot...
I have done the lisp......
Thank you again