| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > ErrorClass > ErrorClass Methods >====== SetSilent (set silent error flag) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[setprocedurename stores procedure names.htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[subsstring resolves error message macros .htm|{{btn_next_n.gif|Next page}}]] | | || **SetSilent(**// flag //**)** {{blk2blue.jpg|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 get silent error flag.htm|GetSilent]]