@ATTACK - @Last.Error
Published By | Date | Version | Knowledge Level | Keywords |
---|---|---|---|---|
Sprezzatura Ltd | 01 JUL 1990 | 1.15+ | EXPERT | @LAST.ERROR, REVERROR.000 |
Variable set by the system to indicate the success or failure of various operations. This variable can have a number of values depending upon the operation responsible for its assignment. The values returned relate to record keys of items found in the file REVERROR.000. The most common values begin with B (for compiler errors) or D (for debugger errors). The two most commonly used are B0 compilation successful) and B10 (compilation aborted).
This variable can be used in determining the success of an operation such as a compilation under program control, eg
PERFORM "BASIC BP TEST" BEGIN CASE CASE @LAST.ERROR = "B0" GOSUB OK CASE @LAST.ERROR = "B10" GOSUB BAD_STATEMENT CASE @LAST.ERROR = "B113" GOSUB TERM_MISSING etc.
Cannot be amended.
(Volume 2, Issue 3, Page 10)