<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3AOptimize_Exiting</id>
	<title>TI-BASIC:Optimize Exiting - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3AOptimize_Exiting"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Optimize_Exiting&amp;action=history"/>
	<updated>2026-05-28T03:58:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=TI-BASIC:Optimize_Exiting&amp;diff=931&amp;oldid=prev</id>
		<title>Maintenance script: Initial automated import</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Optimize_Exiting&amp;diff=931&amp;oldid=prev"/>
		<updated>2016-02-24T18:25:56Z</updated>

		<summary type="html">&lt;p&gt;Initial automated import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Although the Return and Stop commands can both be used for exiting programs, Return should be used instead of Stop. While Return stops only the current program and allows the parent program to continue running, Stop causes all of the programs to stop and then returns the user to the homescreen (unless called from an Assembly program).&lt;br /&gt;
&lt;br /&gt;
 :ClrHome&lt;br /&gt;
 :Disp &amp;quot;Hello&lt;br /&gt;
 :Stop&lt;br /&gt;
 can be&lt;br /&gt;
 :ClrHome&lt;br /&gt;
 :Disp &amp;quot;Hello&lt;br /&gt;
 :Return&lt;br /&gt;
&lt;br /&gt;
You don&amp;#039;t have to use Return or Stop if you can organize the program so that it just naturally quits. If the calculator reaches the end of a program, it will automatically stop executing.&lt;br /&gt;
&lt;br /&gt;
 :ClrHome&lt;br /&gt;
 :Disp &amp;quot;Hello&lt;br /&gt;
 :Return&lt;br /&gt;
 can be&lt;br /&gt;
 :ClrHome&lt;br /&gt;
 :Disp &amp;quot;Hello&lt;br /&gt;
&lt;br /&gt;
When you have a display command that displays text as the last line of the program, you can remove the command and just put the text. This text will be displayed instead of the &amp;quot;Done&amp;quot; message that is normally displayed after a program finishes executing.&lt;br /&gt;
&lt;br /&gt;
 :ClrHome&lt;br /&gt;
 :Disp &amp;quot;Hello&lt;br /&gt;
 can be&lt;br /&gt;
 :ClrHome:&amp;quot;Hello&lt;br /&gt;
&lt;br /&gt;
Even though you don&amp;#039;t display any text as the last command, you may still want to get rid of the &amp;quot;Done&amp;quot; message. You can do this by putting a single double-quote as the last line of the program.&lt;br /&gt;
&lt;br /&gt;
 :ClrHome&lt;br /&gt;
 can be&lt;br /&gt;
 :ClrHome:&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you modify the Ans variable on the last line of the program, Ans&amp;#039;s new value will be displayed instead of the &amp;quot;Done&amp;quot; message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :ClrHome&lt;br /&gt;
 :For(A,1,5&lt;br /&gt;
 :B+A→B&lt;br /&gt;
 :End&lt;br /&gt;
 can be&lt;br /&gt;
 :ClrHome&lt;br /&gt;
 :For(A,1,5&lt;br /&gt;
 :B+A→B&lt;br /&gt;
 :End&lt;br /&gt;
 :B[[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>