Download Print this page

Calling Other Programs As Subroutines - Texas Instruments TI-82 STATS Manual Book

Graphing calculator
Hide thumbs Also See for TI-82 STATS:

Advertisement

Calling Other Programs as Subroutines

Calling a
Program from
Another Program
Notes about
Calling Programs
16–22 Programming
On the TI-82 STATS, any stored program can be called from
another program as a subroutine. Enter the name of the program
to use as a subroutine on a line by itself.
You can enter a program name on a command line in either of
two ways.
Press  | to display the
the name of the program (page 16
the current cursor location on a command line.
Select
from the
prgm
program name (page 16
name
prgm
When
name is encountered during execution, the next
prgm
command that the program executes is the first command in the
second program. It returns to the subsequent command in the
first program when it encounters either
at the end of the second program.
Return
Program
Subroutine ( '
Variables are global.
label used with
Goto
located. label in one program is not recognized by another
program. You cannot use
program.
exits a subroutine and returns to the calling program,
Return
even if it is encountered within nested loops.
PRGM EXEC
7).
prgm
.
menu, and then enter the
PRGM CTL
15).
.
Return
Output
&
and
is local to the program where it is
Lbl
to branch to a label in another
Goto
menu and select
name is pasted to
or the implied

Hide quick links:

Advertisement

loading