<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, protect a variable from restart</title>
    <link>http://www.mapleprimes.com/questions/130354-Protect-A-Variable-From-Restart</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Fri, 12 Jun 2026 04:44:25 GMT</lastBuildDate>
    <pubDate>Fri, 12 Jun 2026 04:44:25 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, protect a variable from restart</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, protect a variable from restart</title>
      <link>http://www.mapleprimes.com/questions/130354-Protect-A-Variable-From-Restart</link>
    </image>
    <item>
      <title>library archive</title>
      <link>http://www.mapleprimes.com/questions/130354-Protect-A-Variable-From-Restart?ref=Feed:MaplePrimes:protect a variable from restart:Comments#answer130356</link>
      <itunes:summary>&lt;p&gt;Whenever your code assigns a new value to the variable, it could be made to savelib that variable to a Library archive. As long as that Library archive is in libname following restart then the saved value will get used (until you reassign a new value to the name).&lt;/p&gt;
&lt;p&gt;But you won't be able to restart from within a procedure (or even with a loop, properly).&lt;/p&gt;
&lt;p&gt;In the Standard GUI you could use a DataTable Component to store one or more values. You could even hide it. So if the rtable associated with such a Component is named X, then any value of X[1] would survive restart even without the worksheet being saved (as well as relaunch provided the worksheet were saved). The downside is that rtable entry X[1] is not a symbolic name, in case your code wanted to use it that way.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Whenever your code assigns a new value to the variable, it could be made to savelib that variable to a Library archive. As long as that Library archive is in libname following restart then the saved value will get used (until you reassign a new value to the name).&lt;/p&gt;
&lt;p&gt;But you won't be able to restart from within a procedure (or even with a loop, properly).&lt;/p&gt;
&lt;p&gt;In the Standard GUI you could use a DataTable Component to store one or more values. You could even hide it. So if the rtable associated with such a Component is named X, then any value of X[1] would survive restart even without the worksheet being saved (as well as relaunch provided the worksheet were saved). The downside is that rtable entry X[1] is not a symbolic name, in case your code wanted to use it that way.&lt;/p&gt;</description>
      <guid>130356</guid>
      <pubDate>Mon, 06 Feb 2012 00:55:33 Z</pubDate>
      <itunes:author>pagan</itunes:author>
      <author>pagan</author>
    </item>
  </channel>
</rss>