Mastering PowerBuilder

HomePrevious Lesson: Course 3:: Session 24 :: Page 130
Next Lesson: Course 3:: Session 24 :: Page 150
Enabling the Error Service

To turn on the error service, you need to call of_SetError( TRUE ) that is available at the application manager. Either of the following are good places to call this function.
Constructor of the n_cst_AppManager (located in the pfeapsrv.pbl )
pfc_open event of the n_cst_AppManager
This.of_SerError( TRUE )


Error Message with no Text file/Database sourcing

If you run the application at this time, you will see the error message as shown in the following picture. When you enable the error service, you need to source the error messages. You might ask "Why should I source the error message, when it's already available in the ERROR object?" Good question.

HomePrevious Lesson: Course 3:: Session 24 :: Page 130
Next Lesson: Course 3:: Session 24 :: Page 150