<?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_Deleting</id>
	<title>TI-BASIC:Optimize Deleting - 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_Deleting"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Optimize_Deleting&amp;action=history"/>
	<updated>2026-04-05T16:40:42Z</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_Deleting&amp;diff=967&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_Deleting&amp;diff=967&amp;oldid=prev"/>
		<updated>2016-02-24T18:27:46Z</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;Instead of setting number variables to zero (to delete them), use the [[TI-BASIC:Delvar|DelVar]] command. DelVar works with all of the variables, and the calculator automatically sets the variable to zero the next time it&amp;#039;s used. However, DelVar is also slightly - so for repeated resetting, it is often faster store 0 to the variable.&lt;br /&gt;
&lt;br /&gt;
 :0→A&lt;br /&gt;
 can be&lt;br /&gt;
 :DelVar A&lt;br /&gt;
&lt;br /&gt;
The DelVar command doesn&amp;#039;t need a line break or colon following the variable name. This allows you to make chains of variables.&lt;br /&gt;
&lt;br /&gt;
 :DelVar A&lt;br /&gt;
 :DelVar B&lt;br /&gt;
 can be&lt;br /&gt;
 :DelVar ADelVar B&lt;br /&gt;
&lt;br /&gt;
Besides making chains of variables, the DelVar command also allows you to take the command from the next line and put it immediately after the last DelVar command.&lt;br /&gt;
&lt;br /&gt;
 :DelVar A&lt;br /&gt;
 :Disp &amp;quot;Hello&lt;br /&gt;
 can be&lt;br /&gt;
 :DelVar ADisp &amp;quot;Hello&lt;br /&gt;
&lt;br /&gt;
The only exception is with the [[TI-BASIC:Lbl|Lbl]] command. Don&amp;#039;t put the Lbl command immediately after a DelVar with this optimization, or else the label will be ignored. For instance, the following code exits with [[TI-BASIC:Errors#label|ERR:LABEL]]:&lt;br /&gt;
&lt;br /&gt;
 :DelVar ALbl 0&lt;br /&gt;
 :Goto 0&lt;br /&gt;
&lt;br /&gt;
Even though the [[TI-BASIC:Clrlist|ClrList]] command exists for clearing lists, DelVar should be used instead.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :ClrList L1&lt;br /&gt;
 can be&lt;br /&gt;
 :DelVar L1&lt;br /&gt;
&lt;br /&gt;
There is a drawback to using Delvar for Lists. If you use Delvar L1 instead of ClrList L1, L1 will disappear from the list editor. This can easily be remedied outside of the program, but inexperienced calculator users who execute your program and then need to view the list that was used by your program may not know how to do this. &lt;br /&gt;
Furthermore, ClrList L1 is 1 byte smaller than Delvar L1.[[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>