Code Red > AutoLISP (Vanilla / Visual)
Abort and return to command prompt
CmdrDuh:
In C# you can use Return to cancel out and return to command prompt, how do you do this in LISP?
CmdrDuh:
Nevermind, I found it
(exit)
CAB:
I find it a rare occasion that I need EXIT?
danallen:
if a DCL can't be found? Saves having a wrapping if statement.
Kerry:
There is a difference in functionality :
.NET return
returns control to the calling method and can optionally return a value.
the lisp (exit)
returns the error message quit/exit abort and quits to the AutoCAD Command prompt.
.... it's handy to have a good *error* routine so that the environment will be cleaned up.
Navigation
[0] Message Index
[#] Next page
Go to full version