| Home | Previous Lesson: Error Service Next Lesson: Enabling the Error Service |
The very usage of error service requires one line of code. That is to direct the error processing from the application's SystemError event to pfc_SystemError in the application manager.
// Object: Application object
// Event: SystemError
pfc_SystemError()
For the demonstration purpose, we have created an error in the w_product_master's pfc_PostOpen event. PowerBuilder displays the following when the application is executed.
This is a simple message box. Clicking on the OK button halts the application. The functionality we have created in the Product Management System is far better than this. Right? There we haven't enabled the error service. That's why you are getting the default functionality. So, what we have learned here is that, without enabling the error service, we can't use any of the error service features.
| Home | Previous Lesson: Error Service Next Lesson: Enabling the Error Service |