148
Chapter 9: Programming Features
Gosub
label name
.....................
End
[Rem
start of the subroutine
(label name)
]
Label
label name
Statements
Return
Subroutine structures can be used for programming.
• The Gosub label name must be the same as the Label starting
the subroutine.
• A Return statement is necessary at the end of the subroutine.
When the Return statement is executed, the calculator executes
the next line after the Gosub statement.
• Up to 10 subroutines can be nested.
7. Other menus convenient for programming
H COPY menu
P
H
You can copy and paste line by line using the COPY menu
commands.
1. Move the cursor to the line that you wish to copy.
2. Press
P
H
.
3. Select
1 StoLine
and press
E
.
The selected line will be stored in
the memory.
4. Move the cursor to the line where
you wish to paste the stored line.
5. Press
P
H
, select
2
RclLine
and press
E
.
The stored line will be inserted at
the targeted position.
•
Please note that only a single line
can be stored in the memory.
3 If
If
conditional statements Goto label name
Only the
Goto
command can be used in combination with
If
clause.
4 Gosub
5 Return