TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Peter2 on January 10, 2017, 06:40:53 AM

Title: DosLIB: return value from dos_msgboxex when Escaping
Post by: Peter2 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?
Title: Re: DosLIB: return value from dos_msgboxex when Escaping
Post by: CincyJeff 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.