Casio FX-9860GII-L-IH User Guide - Page 407
Function, Syntax, Example, Description, Main Routine, Subroutines, Level 1
View all Casio FX-9860GII-L-IH manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 407 highlights
8-5-7 Command Reference Prog Function: This command specifies execution of another program as a subroutine. In the RUN • MAT mode, this command executes a new program. Syntax: Prog "file 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 specific 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 Subroutines A Prog "D" Prog "C" D C E I J Prog "E" Prog "I" Prog "J" Level 1 Level 2 Level 3 Level 4 • 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 file name specified by the Prog command does not exist, an error occurs. • In the RUN• MAT mode, inputting the Prog command and pressing w launches the program specified by the command. 20050401