ErrorBox Class
|
|
Present the user with an error message box.
Inheritance Hierarchy
Namespace:
VO
Assembly:
VOGUIClasses (in VOGUIClasses.dll) Version: 2.24 GA
SyntaxThe ErrorBox type exposes the following members.
Constructors|
| Name | Description |
|---|
 | ErrorBox |
Construct an error message box.
|
Top
Remarks
An error message box is a window that contains the text "Error" in the title bar, the text of the message, and a warning icon.
Error boxes are application modal—the user must acknowledge them before continuing with the application. When the error box closes, focus is returned to its owner window.
Examples
The following example creates and shows an error message box (whose owner is oMyWin) that displays the text "Oops, We have an error!" to the user:
1METHOD Start() CLASS App
2oMyWin := TopAppWindow{}
3oMyWin:Show()
4oErrBox := ErrorBox{oMyWin,;
5"Oops, We have an error!"}
6oErrBox:Show()
7SELF:Exec()
See Also