Purpose:
|
To redirect program execution if there was an error.
|
|
|
|
|
|
Format:
|
ON-ERROR line
|
|
|
|
|
|
Description:
|
line is the line number
|
|
|
|
|
|
Example:
|
10 PHONE 555-1234
|
|
|
|
|
|
|
|
20 ON-ERROR 100
|
|
|
|
|
|
|
30 REM CONTINUES HERE IF NO ERROR
|
|
|
|
|
|
|
40 REM PROCEDURE IF CALL NOT SUCCESSFUL
|
|
|
|
|
Note:
|
ON-ERROR can be used after the following statements:
|
|
|
|
|
|
|
|
PHONE REMOTE GET REMOTE
|
SET RUN-SYSTEM.
|
|
|
|
|