Casio fx-9860G Series User Manual page 410

Software version 1.11
Hide thumbs Also See for fx-9860G Series:
Table of Contents

Advertisement

Prog
Function: This command specifi es execution of another program as a subroutine. In the
RUN
MAT mode, this command executes a new program.
Syntax: Prog "fi le name"
Example: Prog "ABC"
Description:
• Even when this command is located inside of a loop, its execution immediately breaks the
loop and launches the subroutine.
• This command can be used as many times as necessary inside of a main routine to call up
independent subroutines to perform specifi c tasks.
• A subroutine can be used in multiple locations in the same main routine, or it can be called
up by any number of main routines.
Main Routine
Prog "D"
Prog "D"
Prog "C"
Prog "C"
• Calling up a subroutine causes it to be executed from the beginning. After execution of
the subroutine is complete, execution returns to the main routine, continuing from the
statement following the Prog command.
• A Goto~Lbl command inside of a subroutine is valid inside of that subroutine only. It cannot
be used to jump to a label outside of the subroutine.
• If a subroutine with the fi le name specifi ed by the Prog command does not exist, an error
occurs.
MAT mode, inputting the Prog command and pressing w launches the
• In the RUN
program specifi ed by the command.
8-5-7
Command Reference
D
D
A
A
C
C
Prog "E"
Prog "E"
Prog "I"
Prog "I"
Level 1
Level 2 Level 3
20070201
Subroutines
E
E
I
I
J
J
Prog "J"
Prog "J"
Level 4

Advertisement

Table of Contents
loading

Table of Contents