Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this step, you will cause a fatal error to occur and the then view the error log.  The error log is associated with run-time errors.

1.  We will add code in order to create a run time error. Add the code in red below to the bottom of the CreateInstance event handling routine:

          . . . . 
End_Loop
 
#std_num := (#std_num / 0)
 
Endroutine

2.  Compile the form iiiDragandDrop.
3.  On the Home ribbon, click the down arrow on the Execute button, to display the Execute options dialog:


Image AddedImage Removed
4.  Select Form using DirectX and click OK.
Image Removed
Image Added   

5.  A fatal error is displayed.
Image Removed
Image Added

6.  Close the Fatal Error message box (Click OK) and Cancel the Message window.
Image Removed
Image Added

7.  On the Home ribbon, click on History and, from the Error Logs menu select Local.
Image Removed
Image Added


     to view the Visual LANSA Error Log:Image Removed


Image Added


     The toolbar buttons enable the error log to be refreshed, opened in Notepad, or cleared.Image Removed


Image Added


     The error occurred because we added a zero divide error to the form iiiDragandDrop.

8.  Close the Error log window.

9.  Remove the zero divide assignment from the CreateInstance event routine and recompile the form.