+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    alextu
    Guest

    Default Last question for this lisp.......

    Registered forum members do not see this ad.

    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

  2. #2
    Super Member David Bethel's Avatar
    Discipline
    Multi-disciplinary
    David Bethel's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Commercial Food Service
    Using
    AutoCAD pre 2000
    Join Date
    Dec 2003
    Location
    Newport News, Virginia
    Posts
    1,926

    Default

    Code:
    (initget "Yes No") 
    (if (/= "No" (getkword "\n Do you want the tail? Yes or No [Y] : ")) 
        (setq tail "Yes"))
    -David
    R12 (Dos) - A2K

  3. #3
    alextu
    Guest

    Default

    Registered forum members do not see this ad.

    Thank you, David, you helped me a lot...
    I have done the lisp......
    Thank you again

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts