FANDOM


Lists (sometimes called Arrays in other languages) are structures that can hold up to 99 individual values. In TI-84-BASIC, Lists can only store Real or Complex values. In TI-89-BASIC, Strings as well as Real and Complex values can be stored in lists.

Lists can be dimensioned in this format:

:{number1[,number2,...,numberN]}

To change an individual item in a list, the following construct is used:

(84) :numberlistName(position)
(89) :valuelistName[position]

To access an individual item in a list, the following construct is used:

(84) :listName(position)
(89) :listName[position]

The size of a list can be accessed using the dim( command.

VariablesEdit

TI-89Edit

In TI-89, like all variables, any variable name can store a list.

TI-84Edit

DefaultEdit

L1 - L6 found on the keypad.

Defining ListsEdit

Custom lists can be defined in TI-basic. They all start with the L character, and can consist of up to 5 additional characters. They must start with a letter.

:LALIST

Use in programsEdit

High Score ListsEdit

One use for lists in game programs is to create a custom list and save high scores onto it. You can do this by adding it to the list and then deleting the extra at the bottom. (after the list is sorted)

In code, for LSCORE of size 10 and new score S, this is:

:11→dim(LSCORE)
:S→LSCORE(11)
:SortD(LSCORE)
:10→dim(LSCORE)

! This article is a stub. Please help the TI-BASIC Wiki by expanding it

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.