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.19
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
Properties
  NameDescription
Public propertyBeep
A logical value indicating whether to use a system default beep when displaying the text box. TRUE indicates that there will be a beep; FALSE indicates that there will be no beep.
(Inherited from TextBox.)
Public propertyCaption
A string value representing the TextBox caption.
(Inherited from TextBox.)
Public propertyMessage
A string value representing the TextBox message.
(Inherited from TextBox.)
Public propertyCode exampleType
A constant or combination of constants that indicates which push buttons and/or icons are displayed in the message box
(Inherited from TextBox.)
Top
Methods
  NameDescription
Public methodDestroy
Free memory resources allocated for a VObject object and its derived objects.
(Inherited from VObject.)
Public methodShow
Display this message box and return a value indicating how it was closed.
(Inherited from TextBox.)
Top
Fields
  NameDescription
Public fieldoCargo
Cargo slot.
(Inherited from VObject.)
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