Casio fx-9750G Manual page 32

19. programming
Hide thumbs Also See for fx-9750G:
Table of Contents

Advertisement

19 - 11
Command Reference
3. A subroutine can be used in multiple locations in the same main routine, or it can
4. Calling up a subroutine causes it to be executed from the beginning. After execu-
5. A Goto~Lbl command inside of a subroutine is valid inside of that subroutine only.
6. If a subroutine with the file name specified by the Prog command does not exist,
7. In the RUN Mode, inputting the Prog command and pressing w launches the
Function: This command returns from a subroutine.
Syntax: Return _
Description:
Execution of the Return command inside a main routine causes execution of the
program to stop.
Example: Prog "A"
Function: This command terminates execution of a program.
Syntax: Stop _
Description:
1. This command terminates program execution.
2. Execution of this command inside of a loop terminates program execution with-
be called up by any number of main routines.
Main Routine
A
Prog "D"
Prog "C"
tion of the subroutine is complete, execution returns to the main routine, continu-
ing from the statement following the Prog command.
It cannot be used to jump to a label outside of the subroutine.
an error (Go ERROR) occurs.
program specified by the command.
Return
1
A_
Prog "B"_
C ^
Executing the program in File A displays the result of the operation (11).
Stop
out an error being generated.
Subroutines
D
C
E
Prog "E"
Prog "I"
Prog "J"
Level 1 Level 2 Level 3 Level 4
Prog "B"
For A
B To 10_
B + 1
C_
Next_
Return
I
J
344

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents