Author Topic: DosLIB: return value from dos_msgboxex when Escaping  (Read 141 times)

0 Members and 1 Guest are viewing this topic.

Peter2

  • Bull Frog
  • Posts: 416
DosLIB: return value from dos_msgboxex when Escaping
« on: January 10, 2017, 06:40:53 am »
With current Doslib 9.02, Win 10, AutoCAD 2017 I have this simple code:
Code: [Select]
(setq result (dos_msgboxex "Text " "titel" (list "a" "b" "c" "d" "e") 4))It works fine and reurns the zero-based number of the button, but ...

When I press "Esc", it returns the number of the last button, although it should return "nil or an error" (see Help-file).

Who can confirm and / or solve this behaviour?
Peter

AutoCAD 2011 - 2017 German (so some technical terms will be badly retranslated to English)

CincyJeff

  • Newt
  • Posts: 61
Re: DosLIB: return value from dos_msgboxex when Escaping
« Reply #1 on: January 10, 2017, 12:02:33 pm »
I ran across this behavior a year or two ago, although I'm not sure if it was the same dialog, and I contacted the maker. I got a response but I don't remember if there was any promise to change it. I agree with you on how it 'should' function.