User Tools

Site Tools


setsilent_set_silent_error_flag_.htm
Navigation:  ABC Library Reference > ErrorClass > ErrorClass Methods >====== SetSilent (set silent error flag) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

SetSilent( flag )

blk2blue.jpg

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

setsilent_set_silent_error_flag_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1