Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/25/2023 in all areas

  1. So I guess at the end of your code you will have some function that sets the variables (fonts, osmode and so on) back to what they were... but if you cause an 'error', say with the escape then the LISP will never get as far as these lines that return everything back to what they were. Couple of things you can do, make the changes as short as possible. Some will change say OSMode in the first few lines of code, and reset it at the last line where in reality it might only need to be changed for 1 line of code (as an example),... so just change it for where it is needed (and if you need to change it a few times so be it if it will reduce errors) Second thing you can do is to look into error trapping - a small sub routine that does stuff in the case of an error (such as hitting escape), it might be a simple error message "LISP Cancelled" or could do other things such as resetting variables back to how they were.
    1 point
×
×
  • Create New...