Click or drag to resize

ErrorBox Class

X#
Present the user with an error message box.
Inheritance Hierarchy
Object
  VObject
    TextBox
      ErrorBox

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.24 GA
Syntax
 CLASS ErrorBox INHERIT TextBox
Request Example View Source

The ErrorBox type exposes the following members.

Constructors
  NameDescription
Public methodErrorBox
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:
X#
1METHOD Start() CLASS App
2oMyWin := TopAppWindow{}
3oMyWin:Show()
4oErrBox := ErrorBox{oMyWin,;
5"Oops, We have an error!"}
6oErrBox:Show()
7SELF:Exec()
See Also

Reference