Programming
592
An internal subroutine is called and executed in the same way as a separate program.
Ê
Declares the subroutine as a local variable.
Ë
Defines the subroutine.
Ì
Calls the subroutine.
Note:
Use the Program Editor’s
†
Var
toolbar menu to enter the Define and
Prgm...EndPrgm
commands.
Notes about Using Subroutines
Notes about Using Subroutines
Notes about Using Subroutines
Notes about Using Subroutines
At the end of a subroutine, execution returns to the calling program. To exit a subroutine
at any other time, use the
Return
command.
A subroutine cannot access local variables declared in the calling program. Likewise, the
calling program cannot access local variables declared in a subroutine.
Ê
Ë
©
Ë
Ì
:subtest1()
:Prgm
:local subtest2
:Define subtest2(x,y)=Prgm
: Disp x,y
:EndPrgm
:
¦
Beginning of main program
:For i,1,4,1
: subtest2(i,I*1000)
:EndFor
:EndPrgm
Summary of Contents for TI-89 Voyage 200
Page 1: ...TI 89 Titanium Graphing Calculator...
Page 35: ...Getting Started 35 2 B u s i n e s s D B D B Press Result...
Page 44: ...Getting Started 44 3 0 D B D D Press Result...
Page 45: ...Getting Started 45 B D D 2 0 0 2 Press Result...
Page 46: ...Getting Started 46 D B Scroll down to October and press D 1 9 Press Result...
Page 60: ...Getting Started 60 Example Set split screen mode to TOP BOTTOM Press Result 3 B D...
Page 63: ...Getting Started 63 2 D B 4 Press Result...
Page 453: ...Differential Equation Graphing 453...
Page 468: ...Tables 468...
Page 539: ...Data Matrix Editor 539...