User Tools

Site Tools


errorfile_return_error_filename_.htm
Navigation:  Language Reference > 13 - Built-in Functions >====== ERRORFILE (return error filename) ====== Previous pageReturn to chapter overviewNext page

ERRORFILE( )

blk2blue.jpg

The ERRORFILE procedure returns the name of the file for which an error was posted. If the file is open, the full DOS file specification is returned. If the file is not open, the contents of the FILE statement's NAME attribute is returned. If the file is not open and the file has no NAME attribute, the label of the FILE statement is returned. If no error was posted, or the posted error did not involve a file, ERRORFILE returns an empty string.

Return Data Type: STRING

Example:

ADD(Location)                          !Add new entry

IF ERRORCODE()

MESSAGE('Error with ' & ERRORFILE())  !Display error filename

END

See Also:

ERRORCODE

ERROR

FILEERRORCODE

FILEERROR

POPERRORS

PUSHERRORS

Trappable Run Time Errors

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