| **Navigation:**  [[introduction.htm|Language Reference]] > 13 - Built-in Functions >====== FIXFORMAT (fix a dynamic file) ====== | [[firstfield return first window control .htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[flush flush buffers .htm|{{btn_next_n.gif|Next page}}]] | | || **FIXFORMAT( **//file //**//)//** {{blk2blue.jpg|blk2blue.jpg}} | //file// | The label of a FILE structure, which must be a reference variable. | **FIXFORMAT** fixes a dynamic file so that it can be used like any other file. If you pass a file that was not created using NEW(file), **FIXFORMAT** posts the following error codes that can be trapped by the ERRORCODE function: | **Errorcode** | **Equate** | **Reason** | | 80 | //NoDriverSupport// | File passed that was not created with NEW(//file//) | | 47 | //InvalidFileErr// | Structure is invalid | If Error code 47 is posted, the FILEERRORCODE statement can be used to return extended information. See the [[extended errorcode 47 errors.htm|ErrorCode 47 Extended information]] topic for more information. **See Also:** [[unfixformat unfix a dynamic file .htm|UNFIXFORMAT]]