OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Fred Tomke on February 16, 2009, 04:01:42 PM

Title: OnCancelClose
Post by: Fred Tomke on February 16, 2009, 04:01:42 PM
Hello,

I just translate the ErrorHandling.htm. I had a look at the sample and I'm confused: in my experiences the Canceling argument in

(defun c:Project1_Form1_OnCancelClose( Canceling /)
  ;; Return T to prevent form closing if not canceling, and unresolved errors found
  (and (not Canceling) (HighlightFormErrors)) ; Always allow form to close when canceling
)


is not a boolean, but an integer - in any case until now. 1 for ESC pressed, 0 for not ESC pressed.
Did something has changed? Is it really a boolean now?

See here: http://www.opendcl.com/forum/index.php?topic=384.msg1724#msg1724

Fred
Title: Re: OnCancelClose
Post by: owenwengerd on February 16, 2009, 06:47:54 PM
Hmm, you're right, it is passed as an integer. Strange, because it is a boolean right up to the point where it is sent to AutoCAD. I will fix the documentation.
Title: Re: OnCancelClose
Post by: Fred Tomke on February 16, 2009, 11:21:42 PM
Ok, thanks, good to know.

BTW, I'm just changing many files. Please, don't change the German help files, but give me instructions, what to change where. Maybe I've already changed a file.

Fred
Title: Re: OnCancelClose
Post by: owenwengerd on February 17, 2009, 07:01:38 AM
Sorry, I did not note exactly what I changed. I will upload new source files so you can use the SVN software to compare.