tips:revmedia:v2i3a12

@ATTACK - @Last.Error

Published ByDateVersionKnowledge LevelKeywords
Sprezzatura Ltd01 JUL 19901.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)

  • tips/revmedia/v2i3a12.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1