http://learn.cemetech.net/index.php?title=TI-BASIC:Stop&feed=atom&action=historyTI-BASIC:Stop - Revision history2024-03-28T16:48:33ZRevision history for this page on the wikiMediaWiki 1.34.0http://learn.cemetech.net/index.php?title=TI-BASIC:Stop&diff=687&oldid=prevMaintenance script: Initial automated import2016-02-24T18:13:35Z<p>Initial automated import</p>
<p><b>New page</b></p><div>{{Template:TI-BASIC:Command<br />
|picture=STOP_ANIMATED.GIF<br />
|summary=Completely stops the current program and any parent programs.<br />
|syntax=Stop<br />
|location=While editing a program, press<br />
# PRGM to enter the program menu<br />
# ALPHA F to choose Stop, or use arrows<br />
|compatibility=TI-83/84/+/SE<br />
|size=1 byte<br />
}}<br />
<br />
When the Stop command is used in a program it exits the program (terminating the program execution) and returns you to the home screen. If it is encountered within [[TI-BASIC:Controlflow|loops]], the loops will be stopped.<br />
<br />
There is some distinction when using Stop with [[TI-BASIC:Subprograms|Subprograms]]: the Stop command will stop the program execution of the subprogram, as well as the calling program, and return you to the home screen; the program will stop completely. If this functionality is not desired, then you should use the [[TI-BASIC:Return|Return]] command instead.<br />
<br />
= Optimization =<br />
<br />
You don't have to put a Stop command at the end of a program or subprogram if you can organize the program so that it just naturally quits. When the calculator reaches the end of a program, it will automatically stop executing as if it had encountered a Stop command (the Stop is implied).<br />
<br />
:ClrHome<br />
:Input "Guess:",A<br />
:Stop<br />
Remove the Stop<br />
:ClrHome<br />
:Input "Guess:",A<br />
<br />
= Error Conditions =<br />
<br />
* '''[[TI-BASIC:Errors#invalid|ERR:INVALID]]''' occurs if this statement is used outside a program.<br />
<br />
= Related Commands =<br />
<br />
* [[TI-BASIC:Prgm|Prgm]]<br />
* [[TI-BASIC:Return|Return]]<br />
<br />
= See Also =<br />
<br />
* [[TI-BASIC:Subprograms|Subprograms]][[Category:TI-BASIC]]<br />
[[Category:TIBD]]</div>Maintenance script