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

0 Members and 1 Guest are viewing this topic.

Peter2

  • Swamp Rat
  • Posts: 650
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 Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23

CincyJeff

  • Newt
  • Posts: 89
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.