Message 1 of 6

Not applicable
09-05-2017
03:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm trying to learn how to use the getkword function, and I can't figure out why it does not seem to allow me to select the keywords I set up with initget.
According to the getkword page on the Autodesk help pages, it should behave like this:
(initget 1 "Yes No") nil (setq x (getkword "Are you sure? (Yes or No) ")) Are you sure? (Yes or No) yes "Yes"
What I am getting is this:
(initget 1 "Yes No")
nil
(setq x (getkword "Are you sure (Yes or No) "))
Are you sure (Yes or No) Yes
Invalid option keyword.
Are you sure (Yes or No) No
Invalid option keyword.
I can't find any help on this. Any ideas why this is happening?
Solved! Go to Solution.