| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > ErrorClass > ErrorClass Methods >====== MessageBox (display error message to window) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[msg initiate error message destination .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[removeerror remove an individual error .htm|{{btn_next_n.gif|Next page}}]] | | || **MessageBox( **[ //level //], //txt//, [//caption//], [//icon//], //buttons//, //default button//, //style //**), VIRTUAL, PROTECTED** {{blk2blue.jpg|blk2blue.jpg}} | **MessageBox** | A simple MESSAGE() window to display error. | | //level// | The default error level is Level:Benign. | | txt | A string constant, variable, EQUATE, or expression that contains the error message text to display in the message box. | | //caption// | A string constant, variable, EQUATE, or expression that specifies the message box window caption. | | //icon// | An integer constant, variable, EQUATE, or expression that indicates the icon to display on the message box. | | //buttons// | An integer constant, variable, EQUATE, or expression that indicates which Windows standard buttons to place on the message box. This may indicate multiple buttons. If omitted this is equivalent to Button:OK. | | //default button// | An integer constant, variable, EQUATE, or expression that indicates the default button on the message box. | | style | An integer constant, variable, EQUATE, or expression that indicates the font style to use withing the lixt control on the message box dialog.buttons | The **MessageBox** method implements a simple MESSAGE() dialog to display the error message to the window. This can be called independently. It is also used if the ErrorClass is configured to not have a HistoryThreshold. **Return Data Type:**     LONG