<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://m204wiki.rocketsoftware.com/index.php?action=history&amp;feed=atom&amp;title=Setting_the_value_of_a_variable</id>
	<title>Setting the value of a variable - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://m204wiki.rocketsoftware.com/index.php?action=history&amp;feed=atom&amp;title=Setting_the_value_of_a_variable"/>
	<link rel="alternate" type="text/html" href="https://m204wiki.rocketsoftware.com/index.php?title=Setting_the_value_of_a_variable&amp;action=history"/>
	<updated>2026-05-08T19:24:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://m204wiki.rocketsoftware.com/index.php?title=Setting_the_value_of_a_variable&amp;diff=119853&amp;oldid=prev</id>
		<title>Ekern at 13:44, 25 April 2023</title>
		<link rel="alternate" type="text/html" href="https://m204wiki.rocketsoftware.com/index.php?title=Setting_the_value_of_a_variable&amp;diff=119853&amp;oldid=prev"/>
		<updated>2023-04-25T13:44:01Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:44, 25 April 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l20&quot;&gt;Line 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;&quot;&gt;&lt;div&gt;: 3.  Select &amp;lt;span class=&amp;quot;term&amp;quot;&amp;gt;Change Value&amp;lt;/span&amp;gt;.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;&quot;&gt;&lt;div&gt;: 3.  Select &amp;lt;span class=&amp;quot;term&amp;quot;&amp;gt;Change Value&amp;lt;/span&amp;gt;.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;&quot;&gt;&lt;div&gt;:: A &amp;lt;span class=&amp;quot;term&amp;quot;&amp;gt;Set %var&amp;lt;/span&amp;gt; dialog box like the following displays, where &amp;lt;span class=&amp;quot;term&amp;quot;&amp;gt;%var&amp;lt;/span&amp;gt; is replaced by the variable you are modifying, and the variable&amp;#039;s current value is displayed:  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;&quot;&gt;&lt;div&gt;:: A &amp;lt;span class=&amp;quot;term&amp;quot;&amp;gt;Set %var&amp;lt;/span&amp;gt; dialog box like the following displays, where &amp;lt;span class=&amp;quot;term&amp;quot;&amp;gt;%var&amp;lt;/span&amp;gt; is replaced by the variable you are modifying, and the variable&amp;#039;s current value is displayed:  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&quot;&gt;&lt;div&gt;[[File:setvarwin3_zoom60.gif|371x95px|setvarWin3]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;:: &lt;/ins&gt;[[File:setvarwin3_zoom60.gif|371x95px|setvarWin3]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;&quot;&gt;&lt;div&gt;: 4. &amp;lt;span class=&amp;quot;f_ListNum1&amp;quot;&amp;gt;Specify the new variable value, and click &amp;lt;/span&amp;gt;&amp;lt;var&amp;gt;Set&amp;lt;/var&amp;gt;&amp;lt;span class=&amp;quot;f_ListNum1&amp;quot;&amp;gt; or press the Enter key. &amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;&quot;&gt;&lt;div&gt;: 4. &amp;lt;span class=&amp;quot;f_ListNum1&amp;quot;&amp;gt;Specify the new variable value, and click &amp;lt;/span&amp;gt;&amp;lt;var&amp;gt;Set&amp;lt;/var&amp;gt;&amp;lt;span class=&amp;quot;f_ListNum1&amp;quot;&amp;gt; or press the Enter key. &amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;&quot;&gt;&lt;div&gt;:: The &amp;lt;var&amp;gt;Watch Window&amp;lt;/var&amp;gt; is refreshed with the new value, &amp;lt;span class=&amp;quot;term&amp;quot;&amp;gt;Variable Set&amp;lt;/span&amp;gt; displays in the [[Status bar|Status bar]], and the new value becomes the current value of the variable &amp;lt;span class=&amp;quot;term&amp;quot;&amp;gt;in the program&amp;lt;/span&amp;gt; at the current point of program execution.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;&quot;&gt;&lt;div&gt;:: The &amp;lt;var&amp;gt;Watch Window&amp;lt;/var&amp;gt; is refreshed with the new value, &amp;lt;span class=&amp;quot;term&amp;quot;&amp;gt;Variable Set&amp;lt;/span&amp;gt; displays in the [[Status bar|Status bar]], and the new value becomes the current value of the variable &amp;lt;span class=&amp;quot;term&amp;quot;&amp;gt;in the program&amp;lt;/span&amp;gt; at the current point of program execution.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ekern</name></author>
	</entry>
	<entry>
		<id>https://m204wiki.rocketsoftware.com/index.php?title=Setting_the_value_of_a_variable&amp;diff=119162&amp;oldid=prev</id>
		<title>Ekern: Created page with &quot;__TOC__ &lt;span class=&quot;f_Para&quot;&gt;You may set or update the value of certain types of variables with the Janus and TN3270 Debuggers. The following types of variable values may be m...&quot;</title>
		<link rel="alternate" type="text/html" href="https://m204wiki.rocketsoftware.com/index.php?title=Setting_the_value_of_a_variable&amp;diff=119162&amp;oldid=prev"/>
		<updated>2022-11-16T03:17:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__TOC__ &amp;lt;span class=&amp;quot;f_Para&amp;quot;&amp;gt;You may set or update the value of certain types of variables with the Janus and TN3270 Debuggers. The following types of variable values may be m...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__TOC__&lt;br /&gt;
&amp;lt;span class=&amp;quot;f_Para&amp;quot;&amp;gt;You may set or update the value of certain types of variables with the Janus and TN3270 Debuggers. The following types of variable values may be modified:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;span class=&amp;quot;f_ListBul1&amp;quot;&amp;gt;String %variables&amp;lt;/span&amp;gt;&lt;br /&gt;
* &amp;lt;span class=&amp;quot;f_ListBul1&amp;quot;&amp;gt;Unicode %variables&amp;lt;/span&amp;gt;&lt;br /&gt;
* &amp;lt;span class=&amp;quot;f_ListBul1&amp;quot;&amp;gt;Float %variables &amp;lt;/span&amp;gt;&lt;br /&gt;
* &amp;lt;span class=&amp;quot;f_ListBul1&amp;quot;&amp;gt;Fixed %variables &amp;lt;/span&amp;gt;&lt;br /&gt;
* &amp;lt;span class=&amp;quot;f_ListBul1&amp;quot;&amp;gt;Longstrings  (255 character limit)&amp;lt;/span&amp;gt;&lt;br /&gt;
* &amp;lt;span class=&amp;quot;f_ListBul1&amp;quot;&amp;gt;Global variables &amp;lt;/span&amp;gt;&lt;br /&gt;
* &amp;lt;span class=&amp;quot;f_ListBul1&amp;quot;&amp;gt;Screen and Image items &amp;lt;/span&amp;gt;&lt;br /&gt;
* &amp;lt;span class=&amp;quot;f_ListBul1&amp;quot;&amp;gt;Boolean enumeration variables (only True and False [case not important] are valid values) &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span class=&amp;quot;f_Para&amp;quot;&amp;gt;Currently, only scalar variables may be set; array elements may not be set. In addition, most object variables may &amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;term&amp;quot;&amp;gt;not&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;f_Para&amp;quot;&amp;gt; be set. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span class=&amp;quot;f_Para&amp;quot;&amp;gt;To set the value of a variable with the Debugger:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;span&amp;gt;[[Add item to watch window|Add]] the variable to the &amp;lt;var&amp;gt;Watch Window&amp;lt;/var&amp;gt;.&amp;lt;/span&amp;gt;&lt;br /&gt;
# In the &amp;lt;var&amp;gt;Watch Window&amp;lt;/var&amp;gt;, right click the variable.&amp;lt;br /&amp;gt;&lt;br /&gt;
:: If this type of variable can be set, and it is settable at this point in the execution of the program, the &amp;lt;var&amp;gt;Change Value&amp;lt;/var&amp;gt; context menu option is enabled. &lt;br /&gt;
: 3.  Select &amp;lt;span class=&amp;quot;term&amp;quot;&amp;gt;Change Value&amp;lt;/span&amp;gt;. &lt;br /&gt;
:: A &amp;lt;span class=&amp;quot;term&amp;quot;&amp;gt;Set %var&amp;lt;/span&amp;gt; dialog box like the following displays, where &amp;lt;span class=&amp;quot;term&amp;quot;&amp;gt;%var&amp;lt;/span&amp;gt; is replaced by the variable you are modifying, and the variable&amp;#039;s current value is displayed: &lt;br /&gt;
[[File:setvarwin3_zoom60.gif|371x95px|setvarWin3]]&lt;br /&gt;
: 4. &amp;lt;span class=&amp;quot;f_ListNum1&amp;quot;&amp;gt;Specify the new variable value, and click &amp;lt;/span&amp;gt;&amp;lt;var&amp;gt;Set&amp;lt;/var&amp;gt;&amp;lt;span class=&amp;quot;f_ListNum1&amp;quot;&amp;gt; or press the Enter key. &amp;lt;/span&amp;gt;&lt;br /&gt;
:: The &amp;lt;var&amp;gt;Watch Window&amp;lt;/var&amp;gt; is refreshed with the new value, &amp;lt;span class=&amp;quot;term&amp;quot;&amp;gt;Variable Set&amp;lt;/span&amp;gt; displays in the [[Status bar|Status bar]], and the new value becomes the current value of the variable &amp;lt;span class=&amp;quot;term&amp;quot;&amp;gt;in the program&amp;lt;/span&amp;gt; at the current point of program execution.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span class=&amp;quot;f_Para&amp;quot;&amp;gt;The &amp;lt;/span&amp;gt;[[setM204Data command|setM204Data]] command is equivalent to right clicking a &amp;lt;var&amp;gt;Watch Window&amp;lt;/var&amp;gt; item and selecting &amp;lt;span class=&amp;quot;term&amp;quot;&amp;gt;Change Value&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; Setting a new value in the Debugger follows the rules of User Language assignment. For example, specifying a text value for a float variable results in setting the variable to zero.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;See Also:&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
: [[Watching program data items|Watching program data items]]&lt;br /&gt;
: [[Displaying temporarily the value of a program data item|Displaying temporarily the value of a program data item]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Debugger Home]]&lt;/div&gt;</summary>
		<author><name>Ekern</name></author>
	</entry>
</feed>