TI-Basic 89 Programming/Input

Input
Input, I/O(F3):3 is a command which will display a string and wait for the user to input a value. The value will then be stored into the specified variable once Enter is pressed. The behavior of this command changes depending on how many parameters are passed into it, as explained below.

InputStr
InputStr, I/O(F3):4 is much like input, but the values input into this command will always be a string (thus no quotation marks are needed).

Prompt
Prompt, I/O(F3):5 prompts the user to input a number of variables. While this can be used to input more than one variable with one command, it does not give you the flexibility to change what is displayed on screen.

Request
Request, I/O(F3):1:2 puts a pop-up box on the current screen and allows the user to input a string into it, and then stores that string into a variable. Request can be used as a stand-alone command or as part of a Dialog block (more on those later).

PopUp
PopUp, I/O(F3):1:3 displays a pop up window with a number of choices for the user to choose between (passed in as a list). Then, the number of the choice the user selects will be stored into the variable given.

Passing in Arguments
Passing in arguments is vital to functions, and can be helpful in programs as well. In order to get an argument to be passed in, it must be declared in the opening parenthesis of the program editor. Then, when calling the program (by typing  in the home screen), you put the declared arguments into the parenthesis, like so:. Note: for all of the following examples, the name of the function is "temp" (and it is a function).

Example: Temp
Let's say you call this program like so:. The following will appear on your home screen: