<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://en.arcowiki.com/index.php?action=history&amp;feed=atom&amp;title=Global_And_Local_Variable_In_Macro</id>
		<title>Global And Local Variable In Macro - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://en.arcowiki.com/index.php?action=history&amp;feed=atom&amp;title=Global_And_Local_Variable_In_Macro"/>
		<link rel="alternate" type="text/html" href="https://en.arcowiki.com/index.php?title=Global_And_Local_Variable_In_Macro&amp;action=history"/>
		<updated>2026-04-18T19:49:05Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.1</generator>

	<entry>
		<id>https://en.arcowiki.com/index.php?title=Global_And_Local_Variable_In_Macro&amp;diff=2185&amp;oldid=prev</id>
		<title>Slia at 07:50, 7 June 2018</title>
		<link rel="alternate" type="text/html" href="https://en.arcowiki.com/index.php?title=Global_And_Local_Variable_In_Macro&amp;diff=2185&amp;oldid=prev"/>
				<updated>2018-06-07T07:50:51Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 07:50, 7 June 2018&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-l31&quot; &gt;Line 31:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 31:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;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;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;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;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;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;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;CALL/M(SUM_TWO_NUMBERS),100,200&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;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;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;CALL/M(SUM_TWO_NUMBERS),100,200&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;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;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;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;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;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;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[it:Variabile globale e locale nella macro]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;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;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[zh-cn:宏中的全局和局部变量]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;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;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[pt:Variável global e local na macro]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;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;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[de:Globale und lokale Variable im Makro]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;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;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[es:Variable global y local en macro]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;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;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[en:Global And Local Variable In Macro]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Slia</name></author>	</entry>

	<entry>
		<id>https://en.arcowiki.com/index.php?title=Global_And_Local_Variable_In_Macro&amp;diff=375&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://en.arcowiki.com/index.php?title=Global_And_Local_Variable_In_Macro&amp;diff=375&amp;oldid=prev"/>
				<updated>2017-10-24T17:15:23Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 17:15, 24 October 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;' lang='en'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://en.arcowiki.com/index.php?title=Global_And_Local_Variable_In_Macro&amp;diff=374&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;The Declaration of A VariableVariables declaration in a Macro can be GLOBAL or LOCAL.  == Global Declaration == The &lt;code&gt;GLOBAL&lt;/code&gt; modifier in the [[variable]...&quot;</title>
		<link rel="alternate" type="text/html" href="https://en.arcowiki.com/index.php?title=Global_And_Local_Variable_In_Macro&amp;diff=374&amp;oldid=prev"/>
				<updated>2017-08-29T08:22:47Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;The Declaration of A &lt;a href=&quot;/index.php/Variable&quot; title=&quot;Variable&quot;&gt;Variable&lt;/a&gt;&lt;a href=&quot;/index.php/Variables_declaration&quot; title=&quot;Variables declaration&quot;&gt;Variables declaration&lt;/a&gt; in a &lt;a href=&quot;/index.php/Macro&quot; title=&quot;Macro&quot;&gt;Macro&lt;/a&gt; can be GLOBAL or LOCAL.  == Global Declaration == The &amp;lt;code&amp;gt;GLOBAL&amp;lt;/code&amp;gt; modifier in the [[variable]...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The Declaration of A [[Variable]][[Variables declaration]] in a [[Macro]] can be GLOBAL or LOCAL.&lt;br /&gt;
&lt;br /&gt;
== Global Declaration ==&lt;br /&gt;
The &amp;lt;code&amp;gt;GLOBAL&amp;lt;/code&amp;gt; modifier in the [[variable]] declaration makes the [[variable]] created in the [[macro]] '''accessible''' to the main Program.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is used when the result of a [[macro]] shall be used in the main program.&amp;lt;br /&amp;gt;&lt;br /&gt;
The Following example will show that the result of the [[macro]] will be in the DB Viewer even if the [[variable]] has not been declared explicitly in ARCO.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;span style=&amp;quot;color: green; text-decoration: none;&amp;quot;&amp;gt;$$ Example of a MACRO with GLOBAL Result&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;M(SUM_TWO_NUMBERS)=MACRO/NUMBER1,NUMBER2&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;DECL/GLOBAL,DOUBLE, RESULT&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;RESULT=ASSIGN/NUMBER1+NUMBER2&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;ENDMAC&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;CALL/M(SUM_TWO_NUMBERS),100,200&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Local Declaration ==&lt;br /&gt;
The &amp;lt;code&amp;gt;LOCAL&amp;lt;/code&amp;gt; modifier in the [[variable]] declaration makes the [[variable]] created in the [[macro]] '''NOT accessible''' to the main Program.&lt;br /&gt;
This is useful when a support [[variable]] shall be used in the [[macro]] but it is not interesting for the main program.&amp;lt;br /&amp;gt;&lt;br /&gt;
The Following example will show that the result of the [[macro]] will be in the DB Viewer '''but not the temporary [[variable]]'''.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;span style=&amp;quot;color: green; text-decoration: none;&amp;quot;&amp;gt;$$ Example of a MACRO with GLOBAL Result and Temporary Variable Locally declared&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;M(AVERAGE_3_NUMBER)=MACRO/NUMBER1,NUMBER2,NUMBER3&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;DECL/LOCAL,DOUBLE, SUM&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;DECL/GLOBAL,DOUBLE, RESULT&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;SUM=ASSIGN/NUMBER1+NUMBER2+NUMBER3&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;RESULT=ASSIGN/SUM/3&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;ENDMAC&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;CALL/M(SUM_TWO_NUMBERS),100,200&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>