http://beebwiki.mdfs.net/index.php?title=RESTORE&feed=atom&action=historyRESTORE - Revision history2024-03-28T09:09:34ZRevision history for this page on the wikiMediaWiki 1.30.0-rc.0http://beebwiki.mdfs.net/index.php?title=RESTORE&diff=3007&oldid=prevJgharston: Added category.2017-03-16T04:44:18Z<p>Added category.</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 style="vertical-align: top;" lang="en">
<td colspan="2" style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: white; color:black; text-align: center;">Revision as of 04:44, 16 March 2017</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; 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><ins style="font-weight: bold; text-decoration: none;">[[Category:BASIC keywords]]</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>RESTORE</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>RESTORE</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
</table>Jgharstonhttp://beebwiki.mdfs.net/index.php?title=RESTORE&diff=2974&oldid=prevJgharston: Draft initial page.2016-12-31T09:18:41Z<p>Draft initial page.</p>
<p><b>New page</b></p><div>RESTORE<br />
<br />
RES.<br />
A statement which moves the data pointer. RESTORE can be used at any time in<br />
a program to set the line from where READ reads the next DATA item.<br />
<br />
RESTORE on its own resets the data pointer to the first data item in the<br />
program.<br />
<br />
RESTORE followed by a line number or label sets the data pointer to the<br />
first item of data in the specified line (or the next line containing a DATA<br />
statement if the specified line does not contain data). This optional<br />
parameter for RESTORE can specify a calculated line number.<br />
<br />
RESTORE followed by a plus sign (+) and a positive numeric value sets the<br />
data pointer to the first item of data in the line offset from the line<br />
containing the RESTORE statement by the specified number of lines (or the<br />
next DATA statement if the specified line does not contain any data). When<br />
using values greater than +1 it is advisable to put the DATA statements<br />
immediately after the RESTORE statement to avoid incorrect results if the<br />
program is compiled.<br />
<br />
RESTORE<br />
RESTORE 100<br />
RESTORE +2<br />
RESTORE (10*A+20)<br />
RESTORE (mydata)<br />
<br />
You can use RESTORE to reset the data pointer to the start of your data in<br />
order to re-use it. alternatively, you can have several DATA lists in your<br />
program and use RESTORE to set the data pointer to the appropriate list.<br />
<br />
RESTORE DATA<br />
RESTORE DATA causes the DATA pointer saved by a previous LOCAL DATA<br />
statement to be restored from the stack.<br />
<br />
RESTORE ERROR<br />
RESTORE ERROR causes the error-trapping status saved by a previous ON ERROR<br />
LOCAL statement to be restored from the stack.<br />
<br />
RESTORE LOCAL<br />
RESTORE LOCAL (which can be used only inside a user-defined procedure or<br />
function) restores the values of formal parameters and LOCAL/ PRIVATE<br />
variables to those they had before the procedure/function was called.<br />
RESTORE LOCAL also performs the action of RESTORE ERROR. This is primarily<br />
intended for use within an ON ERROR LOCAL error handler.<br />
<br />
Syntax<br />
<br />
RESTORE [<l-num>]<br />
RESTORE [(<numeric>)]<br />
RESTORE +<numeric><br />
RESTORE DATA<br />
RESTORE ERROR<br />
RESTORE LOCAL<br />
<br />
Associated Keywords<br />
<br />
READ, DATA, ON ERROR LOCAL</div>Jgharston