Skip to content
Property Value
Hex Value $9B
Categories
Localizations
  • FR: RappelBDG

RecallGDB

Overview

Restores all settings stored in the graph database variable GDBn.

Availability: Token available everywhere.

Syntax

RecallGDB n

Arguments

NameTypeOptional
n

Location

2nd, draw, STO, 4:RecallGDB


Description

The RecallGDB command recalls graph settings a GDB (Graph DataBase) variable, one of GDB1, GDB2, …, GDB0 (as indicated by the argument). These settings can be stored to a GDB using the StoreGDB command.

The settings stored in a GDB include:

  • The graphing mode currently enabled.
  • All equations in the current graphing mode, but NOT other graphing modes.
  • All window variables applicable to the current graphing mode. This does not include zoom variables, table settings, or irrelevant variables such as Tmin when in function mode.
  • The menu settings relevant to graphing (everything in the 2nd FORMAT menu, as well as Connected/Dot and Sequential/Simul settings in the MODE menu)

The number passed to RecallGDB must be one of 0 through 9. It has to be a number: RecallGDB X will not work, even if X contains a value 0 through 9.

Advanced Uses

The StoreGDB and RecallGDB variables are useful in cleaning up after a program finishes running, preserving the user's settings. If your program heavily relies on the graph screen, it may end up editing window size or other graph settings, which the user might want to be saved. This is easily done:

Add StoreGDB 1 (or any other number) to the beginning of your program.

Then, feel free to edit any graph settings you like.

At the end of your program, add RecallGDB 1, followed by DelVar GDB1, to recall the graph settings stored at the beginning.

GDBs can also be useful in adding extra string storage. You can store strings to the Yn variables, and back them up in a GDB; to retrieve them later, recall the GDB and use Equ►String( to store the equations to the strings again.

Error Conditions

  • ERR:DATA TYPE is thrown if the argument is not a number 0 through 9.
  • ERR:UNDEFINED is thrown if the requested GDB does not exist.

See Also


Source: parts of this page were written by the following TI|BD contributors: DarkerLine, GoVegan, Zaphod Beeblebrox.

History

Calculator OS Version Description
TI-82 1.0 Added
Authors: Adrien Bertrand