OnCancelClose

Started by Fred Tomke, February 16, 2009, 04:01:42 PM

Previous topic - Next topic

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

owenwengerd

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.

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

owenwengerd

Sorry, I did not note exactly what I changed. I will upload new source files so you can use the SVN software to compare.