Mastering PowerBuilder

HomePrevious Lesson: Course 3:: Session 24 :: Page 120
Next Lesson: Course 3:: Session 24 :: Page 140
Using Error Service

The very simple usage of error service requires one line of code. That is, 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 one error in the w_product_master's pfc_PostOpen event. PowerBuilder displays the following when I run the application.


Default PFC Error Message.

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? We haven't enabled the error service yet, that's why you are getting the default functionality. Without enabling the error service, we can't use any of the error service features.

HomePrevious Lesson: Course 3:: Session 24 :: Page 120
Next Lesson: Course 3:: Session 24 :: Page 140