Sharp OZ-707 Operation Manual - Page 71
Sharp OZ-707 - Scientific Rom Card Manual
UPC - 074000012141
View all Sharp OZ-707 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 71 highlights
ERL p o FORMAT: ERL Abbreviation: See Also: ERN, ON ERROR GOTO PURPOSE: Returns the line number at which an error occurred during program execution. REMARKS: The ERL function is used with the ERN function and the ON ERROR GOTO statement in error processing routines to control program flow when an error occurs. A line number is only set in ERL if the error occurred during program execution. ERL will be cleared when • a RUN statement is executed. • the power is turned off. • a program is loaded. ERN P D FORMAT: ERN Abbreviation: See Also: ERL, ON ERROR GOTO PURPOSE: Returns the error code number of the execution error. REMARKS: The ERN function is used with the ERL function and the ON ERROR GOTO statement in error processing routines to control program flow when an error occurs. See Appendix A for a list of error messages. ERN will be cleared when • a RUN statement is executed. • the power is turned off. • a program is loaded. EXAMPLE: 10: ON ERROR GOTO 100:WAIT 20: FOR N = 1 TO 20 30: READ A 40: PRINT A 50: NEXT N 60: END 100: IF ERL = 30 AND ERN = 53 THEN PRINT "YOU HAVE NO DATA" 130 131