| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > ErrorClass > ErrorClass Methods >====== SetFileName (set the file that produced the error) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[setfile set the substitution value of the file macro .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[sethistoryresetonview set error reset mode .htm|{{btn_next_n.gif|Next page}}]] | | || **SetFileName(**// filename //**)** {{blk2blue.jpg|blk2blue.jpg}} | **SetFileName** | Sets the name of the file that replaces any %File symbols within the active error message text. | | //filename// | A STRING constant, variable, EQUATE, or expression that sets the file name to use in the current error message text. | **SetFileName** sets the value of the ErrorStatusGroup **FileName** private property. The //filename// value replaces any %File symbols within the current error message text. **See Also:** [[getfilename get file that produced the error .htm|GetFileName]], [[filename.htm|FileName]]