Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I wrote the following
(defun Fn ( Obj / *error* RES)
;;
(defun *error* (errmsg)
(PRINC)
)
;;
(princ "FnSTART")
(Setq RES (vla-get-name Obj))
(princ ">FnEND")
RES
)
(defun c:cm nil
(princ "In")
(Fn nil)
(princ ">Out")
)
After a call to cm command i get :
In>FnSTART
I expepted :
In>FnSTART>FnEND>Out
That's because after error caused by passing a nil Obj value to Fn , the code doesn't continous bypassing the error.
How this could be done?
Thanks,
Sincerely,
Gery
Solved! Go to Solution.