Exception Handling; Catch - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

run
Executes the input instruction list ..
stop
?make "instr_list [fd 40 rt 90]
?run :instr_list
Stops the execution of the current procedure and returns to TOP LE VEL (the ?
prompt) or the calling procedure.
?stop
wait
Stops procedure execution for the amount of time specified by the input number. The
amount oftime
=
input number
*
1160 seconds.
?wait 200
Exception handling:
catch
Traps errors and special conditions that occur during the execution of the input
instruction list.
>catch "error
[+ []
[J]
>pr Cl am here]
I am here
error
Outputs a list whose elements describe the most recent error.
>catch "error [do.until.error]
>show error
Chapter 6 Page 40
Introduction to Logo

Advertisement

Table of Contents
loading

Table of Contents

Save PDF