Navigation: ABC Library Reference > ErrorClass > ErrorClass Methods >====== SetSilent (set silent error flag) ====== | |
SetSilent( flag )
SetSilent | Specifies the state of error display mode. |
Flag | An integer constant, variable, EQUATE, or expression that sets the status of the Silent property. |
SetSilent sets the value of the ErrorClass Silent private property.
The Silent property determines whether an error will be displayed to the screen. If Silent is set to one (1 or True), the error message box will not be displayed to the screen; however it will be added to the error log file. If Silent is set to zero, (0 or False) the error is displayed to the screen as well as added to the error log file.
Example:
GlobalErrors.Msg PROCEDURE(STRING Txt,<;STRING Caption>,<;STRING Icon>,|
LONG Buttons = Button:Ok,LONG DefaultButton = 0,LONG Style = 0)
ReturnValue LONG,AUTO
CODE
SELF.SetLogErrors(TRUE) !Turn on Error Logging
SELF.SetSilent(TRUE) !Set Error Logging to Silent Mode
ReturnValue = PARENT.Msg(Txt,Caption,Icon,Buttons,DefaultButton,Style)
RETURN ReturnValue
See Also: GetSilent