TI-BASIC:SK:Cheat Sheet
From Learn @ Cemetech
Revision as of 00:54, 25 February 2016 by Maintenance script (talk | contribs) (Automated internal link correction)
The cheat sheet is a basic list of the programming commands found in the PRGM menu while programming. Each command includes a brief summary, along with its syntax(s) and specific menu location. Click on the title of each box to see a more detailed description.
If
Checks if a condition is true, and if it is, runs an optional statement or group of statements.
Command Syntax
If conditionstatement
If condition
Then
one or more statements
End
If condition
Then
statement(s) to run if condition is true
Else
statement(s) to run otherwise
End
Menu Location
|
End
Indicates the end of a block of statements.
Command Syntax
If condition
Then
statement(s)
End
While conditionstatement(s)
End
Repeat conditionstatement(s)
End
For(variable,start,end[,step])
statement(s)
End
Menu Location
|
For(
Executes some commands many times, with a variable increasing from start to end by step, with the default value step=1.
Command Syntax
For(variable,start,end[,step])
statement(s)
End
Menu Location
|
While
Loops through a block of code while the condition is true.
Command Syntax
While conditionstatement(s)
End
Menu Location
|
Repeat
Loops through a block of code until the condition is true. Always loops at least once.
Command Syntax
Repeat conditionstatement(s)
End
Menu Location
|
Lbl
Defines a label for a particular Goto or Menu( to jump to.
Command Syntax
Lbl nameMenu Location
|
Goto
Jumps to the Lbl instruction with the specified name, and continues running the program from there.
Command Syntax
Goto name
…
Lbl nameMenu Location
|
Prgm
Calls another program from within a program, with program execution moving to that program.
Command Syntax
prgmNAMEMenu Location
|
[[TI-BASIC:IS>(|IS>(]]
Increments a variable by one and skips the next command if the variable is greater than the value.
Command Syntax
IS>(variable,value)
Menu Location
|
[[TI-BASIC:DS<(|DS<(]]
Decrements a variable by one and skips the next command if the variable is less than the value.
Command Syntax
DS<(variable,value)
Menu Location
|
Return
Stops the program and returns the user to the home screen. If the program is a subprogram, however, it just stops the subprogram and returns program execution to the parent program.
Command Syntax
Return
Menu Location
|
Stop
Completely stops the current program and any parent programs.
Command Syntax
Stop
Menu Location
|
DelVar
Deletes a variable from memory.
Command Syntax
DelVar variableMenu Location
|
GraphStyle(
Sets the graphing style of a graphing equation in the current mode.
Command Syntax
GraphStyle(equation #, style #)
Menu Location
|
DispGraph
Displays the graph screen.
Command Syntax
DispGraph
Menu Location
|
DispTable
Displays the table screen.
Command Syntax
DispTable
Menu Location
|
ClrHome
Clears the home screen of any text.
Command Syntax
ClrHome
Menu Location
|
Disp
Displays an expression, a string, or several expressions and strings on the home screen.
Command Syntax
Disp [argument1,argument2,...]
Menu Location
|
Output(
Displays an expression on the home screen starting at a specified row and column. Wraps around if necessary.
Command Syntax
Output(row, column, expression)
Menu Location
|
Pause
Pauses a program until the user presses ENTER.
Command Syntax
Pause [value or text]
Menu Location
|
Menu(
Displays a generic menu on the home screen, with up to seven options for the user to select.
Command Syntax
Menu("Title","Option 1",Label 1[,...,"Option 7",Label 7])
Menu Location
|
Input
Prompts the user to enter a value and then stores the value to the variable.
Displays the graph screen and then the user can move around the cursor.
Command Syntax
Input
Input ["Text",]variableMenu Location
|
Prompt
Prompts the user to enter values for variables and then stores those values to the variables.
Command Syntax
Prompt variableA[,variableB,...]
Menu Location
|
GetKey
Returns the numerical code of the last key pressed, or 0 if no key is pressed.
Command Syntax
getKey[→Variable]
Menu Location
|
GetCalc(
Gets a variable from another calculator.
Command Syntax
GetCalc(variable)
(84+ and 84+SE only)
GetCalc(variable,portflag)
Menu Location
|
Get(
Gets a variable's value from a connected calculator or CBL device.
Command Syntax
Get(variable)
Menu Location
|
Send(
Sends data or a variable to a connected CBL device.
Command Syntax
Send(variable)
Menu Location
|