http://learn.cemetech.net/index.php?title=TI-BASIC:Setupeditor&feed=atom&action=historyTI-BASIC:Setupeditor - Revision history2024-03-29T11:14:47ZRevision history for this page on the wikiMediaWiki 1.34.0http://learn.cemetech.net/index.php?title=TI-BASIC:Setupeditor&diff=1281&oldid=prevMaintenance script: Automated @@ correction2016-02-24T21:38:56Z<p>Automated @@ correction</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 21:38, 24 February 2016</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l4" >Line 4:</td>
<td colspan="2" class="diff-lineno">Line 4:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>By default, works with L1-L6.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>By default, works with L1-L6.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>|syntax=SetUpEditor <del class="diffchange diffchange-inline">@@</del>[<del class="diffchange diffchange-inline">@@</del>''list'', ''list'',...]</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>|syntax=SetUpEditor <ins class="diffchange diffchange-inline"><nowiki></ins>[<ins class="diffchange diffchange-inline"></nowiki></ins>''list'', ''list'',...]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|location=Press:</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|location=Press:</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div># STAT to enter the STAT menu.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div># STAT to enter the STAT menu.</div></td></tr>
</table>Maintenance scripthttp://learn.cemetech.net/index.php?title=TI-BASIC:Setupeditor&diff=626&oldid=prevMaintenance script: Initial automated import2016-02-24T18:10:36Z<p>Initial automated import</p>
<p><b>New page</b></p><div>{{Template:TI-BASIC:Command<br />
|picture=SETUPEDITOR.GIF<br />
|summary=Sets which lists are shown in the List Editor. As a side effect, unarchives the lists, and creates them if they don't exist.<br />
<br />
By default, works with L1-L6.<br />
|syntax=SetUpEditor @@[@@''list'', ''list'',...]<br />
|location=Press:<br />
# STAT to enter the STAT menu.<br />
# 5 to choose SetUpEditor, or use arrows.<br />
|compatibility=TI-83/84/+/SE<br />
|size=2 bytes<br />
}}<br />
<br />
The SetUpEditor command is meant as an auxiliary for the List Editor (which can be accessed by pressing STAT ENTER (Edit...)). The list editor provides a convenient interface for looking at the elements in lists, or editing those elements (especially when the elements of two lists are connected to each other, such as a list for X-coordinates and one for Y-coordinates, since they will be shown in the same row). <br />
<br />
The SetUpEditor command sets which lists are shown in this list editor. By default, it selects the lists L1, L2, L3, L4, L5, and L6. To do this, just use the command with no arguments:<br />
<br />
:SetUpEditor<br />
<br />
However, you can use it to select any lists that you have defined, or even lists that you haven't defined yet. To do this, simply put the lists you want as arguments to the command. For example, if you want to edit the lists FOO and BAR, do:<br />
<br />
:SetUpEditor FOO,BAR<br />
<br />
The List Editor doesn't do anything when you are running a program, so it may seem as though SetUpEditor is nearly useless in programs. This is not the case, however, because of SetUpEditor's powerful side effect: if the lists it is given as arguments are archived, it will unarchive them. If they don't exist, it will create them with size 0. <br />
<br />
= Advanced Uses =<br />
<br />
Due to this side effect, SetUpEditor can be used for lists with external data such as [[TI-BASIC:Saving|saved]] games or [[TI-BASIC:Highscores|high scores]]. When the user first runs the program, the assumption is you don't know anything about the state of those lists: they may be archived, or they may not even exist. You can deal with both of those individually: storing to the dimension will create the list if it didn't exist, and the [[TI-BASIC:Unarchive|UnArchive]] command will move the list to RAM if it wasn't there. <br />
<br />
However, if you're wrong about the list, both of these commands will cause an error. If the list exists but is archived, storing to its dimension will cause an [[TI-BASIC:Errors#archive|ERR:ARCHIVE]] error. If the list doesn't exist, unarchiving it will cause an [[TI-BASIC:Errors#undefined|ERR:UNDEFINED]] error. Sounds like a vicious circle.<br />
<br />
The SetUpEditor command allows you to deal with both of these problems at once. Say the program saves its data in LSAVE. Use the SetUpEditor command on it, and from then on you know that the list exists AND that it is unarchived.<br />
<br />
<br />
:SetUpEditor SAVE<br />
<br />
<br />
At the end of the program, you should [[TI-BASIC:Cleanup|clean up]] after yourself, though. You don't want the user to see the list SAVE in the editor (he might be tempted to edit it and give himself a huge high score, for one thing). So you should use the SetUpEditor command again, this time without arguments, to reset the editor to its default state.<br />
<br />
For more information about using SetUpEditor in the context of saving data, see the page on [[TI-BASIC:Saving|Saving]].<br />
<br />
= Similar Commands =<br />
<br />
* [[TI-BASIC:Dim|Dim(]]<br />
* [[TI-BASIC:Clrlist|ClrList]]<br />
* [[TI-BASIC:Unarchive|UnArchive]]<br />
<br />
= See Also =<br />
<br />
* [[TI-BASIC:Saving|Saving Data]]<br />
* [[TI-BASIC:Highscores|Highscores]]<br />
* [[TI-BASIC:Cleanup|Program Cleanup]][[Category:TI-BASIC]]<br />
[[Category:TIBD]]</div>Maintenance script