3.6.5.6 ErrorProc

The ErrorProc macro is triggered

  • when the LabTalk interpreter detects a #Command Error.
  • when you click the Cancel button in any dialog box.
  • when you click the No button in dialog boxes that do not have a Cancel button.

The ErrorProc macro is deleted immediately after it is triggered and executed. The ErrorProc macro is useful for error trapping.