Run-Time Function: Returns the last error set by a run-time procedure.
Module: USE DFLIB
Syntax
Results:
The result is of type INTEGER(4). The result is the most recent error code generated by a run-time procedure.
Run-time functions that return a logical or integer value sometimes also provide an error code that identifies the cause of errors. GETLASTERRORQQ retrieves the most recent error message. The error constants are in DFLIB.F90 (in the \DF98\INCLUDE subdirectory). The following table shows the run-time library routines and the errors each routine produces:
This run-time routine | Produces these errors |
---|---|
RUNQQ | ERR$NOMEM, ERR$2BIG, ERR$INVAL, ERR$NOENT, ERR$NOEXEC |
SYSTEMQQ | ERR$NOMEM, ERR$2BIG, ERR$NOENT, ERR$NOEXEC |
GETDRIVESIZEQQ | ERR$INVAL, ERR$NOENT |
GETDRIVESQQ | no error |
GETDRIVEDIRQQ | ERR$NOMEM, ERR$RANGE |
CHANGEDRIVEQQ | ERR$INVAL, ERR$NOENT |
CHANGEDIRQQ | ERR$NOMEM, ERR$NOENT |
MAKEDIRQQ | ERR$NOMEM, ERR$ACCES, ERR$EXIST, ERR$NOENT |
DELDIRQQ | ERR$NOMEM, ERR$ACCES, ERR$NOENT |
FULLPATHQQ | ERR$NOMEM, ERR$INVAL |
SPLITPATHQQ | ERR$NOMEM, ERR$INVAL |
GETFILEINFOQQ | ERR$NOMEM, ERR$NOENT, ERR$INVAL |
SETFILETIMEQQ | ERR$NOMEM, ERR$ACCES, ERR$INVAL, ERR$MFILE, ERR$NOENT |
SETFILEACCESSQQ | ERR$NOMEM, ERR$INVAL, ERR$ACCES |
DELFILESQQ | ERR$NOMEM, ERR$ACCES, ERR$NOENT, ERR$INVAL |
RENAMEFILEQQ | ERR$NOMEM, ERR$ACCES, ERR$NOENT, ERR$XDEV |
FINDFILEQQ | ERR$NOMEM, ERR$NOENT |
PACKTIMEQQ | no error |
UNPACKTIMEQQ | no error |
COMMITQQ | ERR$BADF |
GETCHARQQ | no error |
PEEKCHARQQ | no error |
GETSTRQQ | no error |
GETLASTERRORQQ | no error |
SETERRORMODEQQ | no error |
GETENVQQ | ERR$NOMEM, ERR$NOENT |
SETENVQQ | ERR$NOMEM, ERR$INVAL |
SLEEPQQ | no error |
BEEPQQ | no error |
SORTQQ | ERR$INVAL |
BSEARCHQQ | ERR$INVAL |
Compatibility
CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS DLL LIB