| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > ErrorClass > ErrorClass Methods >====== SetHistoryThreshold (set size of error history) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[sethistoryresetonview set error reset mode .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[sethistoryviewlevel set error history viewing mode .htm|{{btn_next_n.gif|Next page}}]] | | || **Set****HistoryThreshold**** (**// number //**)** {{blk2blue.jpg|blk2blue.jpg}} | **SetHistoryThreshold** | Specifies the amount of error history items to store. | | //number// | An integer constant, variable, EQUATE, or expression that sets the number of items to store in the error log file. | **SetHistoryThreshold** sets the value of the ErrorClass [[historythreshold determine size of error history .htm|HistoryThreshold]] private property, which sets the number of items to store in the error log file. Setting the //number// to -1 keeps all errors. Setting //number// to 0 switches off error history logging. **See Also:** [[gethistorythreshold get size of error history .htm|GetHistoryThreshold]]