Programming
582
Note:
The
Define
,
DelVar
, and
Local
commands are available from the Program Editor’s
†
Var
toolbar menu.
Using Local Variables in Functions or Programs
A local variable is a temporary variable that exists only while a user-defined function is
being evaluated or a user-defined program is running.
Example of a Local Variable
The following program segment shows a
For...EndFor loop
(which is discussed later in
this module). The variable
i
is the loop counter. In most cases, the variable
i
is used only
while the program is running.
NewPic
Creates a picture variable based on a matrix.
Rename
Renames a variable.
Unarchiv
Moves specified variables from user data archive memory
to RAM.
Unlock
Unlocks a locked variable.
Ê
:Local I
:For i,0,5,1
: Disp I
:EndFor
:Disp i
Command
Description
Summary of Contents for Titanium TI-89
Page 9: ...Getting Started 6 TI 89 Titanium keys Ë Ì Í Ê ...
Page 34: ...Getting Started 31 2 or D 2 B u s i n e s s D B D B Press Result ...
Page 43: ...Getting Started 40 3 0 D B D D B D Press Result ...
Page 44: ...Getting Started 41 D 2 0 0 2 D B Scroll down to October and press Press Result ...
Page 58: ...Getting Started 55 Example Set split screen mode to TOP BOTTOM Press Result 3 B D ...
Page 70: ...Getting Started 67 ...
Page 175: ...Operating the Calculator 172 From the Keyboard ...
Page 456: ...Tables 453 ...
Page 527: ...Data Matrix Editor 524 ...