<?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=Passing_Variables_And_Features_To_A_Macro</id>
		<title>Passing Variables And Features To A 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=Passing_Variables_And_Features_To_A_Macro"/>
		<link rel="alternate" type="text/html" href="https://en.arcowiki.com/index.php?title=Passing_Variables_And_Features_To_A_Macro&amp;action=history"/>
		<updated>2026-05-04T19:53:27Z</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=Passing_Variables_And_Features_To_A_Macro&amp;diff=2313&amp;oldid=prev</id>
		<title>Slia at 08:41, 14 June 2018</title>
		<link rel="alternate" type="text/html" href="https://en.arcowiki.com/index.php?title=Passing_Variables_And_Features_To_A_Macro&amp;diff=2313&amp;oldid=prev"/>
				<updated>2018-06-14T08:41:24Z</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 08:41, 14 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-l79&quot; &gt;Line 79:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 79:&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(PASSING_A_FEATURE),(P1),'P2',100&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(PASSING_A_FEATURE),(P1),'P2',100&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:Passaggio di variabili e funzionalità a una 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:Passando variáveis e recursos para uma 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:Übergeben von Variablen und Features an ein 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:Pasar variables y características a una 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:Passing Variables And Features To A Macro]]&lt;/ins&gt;&lt;/div&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;/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;[[Category:Dmis_Tutorial]]&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;[[Category:Dmis_Tutorial]]&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=Passing_Variables_And_Features_To_A_Macro&amp;diff=1969&amp;oldid=prev</id>
		<title>Admin: The LinkTitles extension automatically added links to existing pages (&lt;a rel=&quot;nofollow&quot; class=&quot;external free&quot; href=&quot;https://github.com/bovender/LinkTitles&quot;&gt;https://github.com/bovender/LinkTitles&lt;/a&gt;).</title>
		<link rel="alternate" type="text/html" href="https://en.arcowiki.com/index.php?title=Passing_Variables_And_Features_To_A_Macro&amp;diff=1969&amp;oldid=prev"/>
				<updated>2018-03-23T14:18:42Z</updated>
		
		<summary type="html">&lt;p&gt;The LinkTitles extension automatically added links to existing pages (&amp;lt;a rel=&amp;quot;nofollow&amp;quot; class=&amp;quot;external free&amp;quot; href=&amp;quot;https://github.com/bovender/LinkTitles&amp;quot;&amp;gt;https://github.com/bovender/LinkTitles&amp;lt;/a&amp;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 14:18, 23 March 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-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When a [[Macro]] is created, it can receive from the [[DMIS]] program both '''Variables and Features''' as argument.&amp;lt;br /&amp;gt;&lt;/div&gt;&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;When a [[Macro]] is created, it can receive from the [[DMIS]] program both '''&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[&lt;/ins&gt;Variables&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]] &lt;/ins&gt;and Features''' as argument.&amp;lt;br /&amp;gt;&lt;/div&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;/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;== Passing Variable to A Macro ==&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;== Passing Variable to A Macro ==&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=Passing_Variables_And_Features_To_A_Macro&amp;diff=831&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://en.arcowiki.com/index.php?title=Passing_Variables_And_Features_To_A_Macro&amp;diff=831&amp;oldid=prev"/>
				<updated>2017-10-24T17:15:29Z</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=Passing_Variables_And_Features_To_A_Macro&amp;diff=830&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;When a Macro is created, it can receive from the DMIS program both '''Variables and Features''' as argument.&lt;br /&gt;  == Passing Variable to A Macro ==  In order to '''p...&quot;</title>
		<link rel="alternate" type="text/html" href="https://en.arcowiki.com/index.php?title=Passing_Variables_And_Features_To_A_Macro&amp;diff=830&amp;oldid=prev"/>
				<updated>2017-08-29T08:08:29Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;When a &lt;a href=&quot;/index.php/Macro&quot; title=&quot;Macro&quot;&gt;Macro&lt;/a&gt; is created, it can receive from the &lt;a href=&quot;/index.php/DMIS&quot; title=&quot;DMIS&quot;&gt;DMIS&lt;/a&gt; program both &amp;#039;&amp;#039;&amp;#039;Variables and Features&amp;#039;&amp;#039;&amp;#039; as argument.&amp;lt;br /&amp;gt;  == Passing Variable to A Macro ==  In order to &amp;#039;&amp;#039;&amp;#039;p...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;When a [[Macro]] is created, it can receive from the [[DMIS]] program both '''Variables and Features''' as argument.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Passing Variable to A Macro ==&lt;br /&gt;
&lt;br /&gt;
In order to '''pass a [[variable]] to a [[Macro]]''' it is necessary to define in the [[macro]] declaration that the argument is a [[variable]]:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;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 Used with Variable&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;M(PASSING_A_VARIABLE)=MACRO/MYVARIABLE&amp;lt;br /&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;	DECL/LOCAL,CHAR,128,tmpString&amp;lt;br /&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;	tmpString=ASSIGN/CONCAT('The Variable Passed is: ',STR(MYVARIABLE))&amp;lt;br /&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;	TEXT/OPER,tmpString&amp;lt;br /&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;ENDMAC&amp;lt;br /&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;DECL/DOUBLE,PASSED_TO_MACRO&amp;lt;br /&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PASSED_TO_MACRO=ASSIGN/100&amp;lt;br /&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;CALL/M(PASSING_A_VARIABLE),100&amp;lt;br /&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;CALL/M(PASSING_A_VARIABLE),PASSED_TO_MACRO&amp;lt;br /&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Passing Feature to A Macro ==&lt;br /&gt;
&lt;br /&gt;
In order to pass '''a featureto a [[Macro]]''' it is necessary to define in the [[macro]] declaration that the argument is a feature '''using the &amp;quot;'&amp;quot; in the declaration''' and, when calling the [[Macro]], '''use the &amp;quot;(&amp;quot; and &amp;quot;)&amp;quot;''' to inform that the feature has been passed.&amp;lt;br /&amp;gt;&lt;br /&gt;
In the [[Macro]] the feature '''is passed as object''', so it can be access directly.&lt;br /&gt;
&amp;lt;br /&amp;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 Used with Feature passed directly&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;F(P1)=FEAT/POINT,CART,0,0,0,0,0,1&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;M(PASSING_A_FEATURE)=MACRO/'FEATURE'&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;	DECL/LOCAL,DOUBLE, XX&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;	XX=OBTAIN/F(FEATURE),3&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;	tmpString=ASSIGN/CONCAT('The X VALUE OF THE PASSED POINT IS: ',STR(XX))&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;	TEXT/OPER,tmpString&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(PASSING_A_FEATURE),(P1)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Passing Feature to A Macro Using a Variable==&lt;br /&gt;
&lt;br /&gt;
In order to pass a '''feature to a [[Macro]] using a [[Variable]]''' it is necessary to define in the [[macro]] declaration that the argument is a [[Variable]] (see above) and, when using the [[Macro]], '''use the &amp;quot;@&amp;quot; to access to the feature''' as [[variable]]:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;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 Used with Feature passed as Varible&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;F(P1)=FEAT/POINT,CART,0,0,0,0,0,1&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;M(PASSING_A_FEATURE)=MACRO/FEATURE&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;	DECL/LOCAL,DOUBLE, XX&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;	XX=OBTAIN/F(@FEATURE),3&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;	tmpString=ASSIGN/CONCAT('The X VALUE OF THE PASSED POINT IS: ',STR(XX))&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;	TEXT/OPER,tmpString&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(PASSING_A_FEATURE),'P1'&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Passing Features and Variables to A Macro Using a Variable==&lt;br /&gt;
&lt;br /&gt;
A [[macro]] can '''receive as arguments both features and Variables'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this case it is necessary to define in the [[macro]] declaration that the argument is a [[Variable]] or a Feature (see above) and, when using the [[Macro]], '''use the &amp;quot;@&amp;quot; or &amp;quot;(&amp;quot; and &amp;quot;)&amp;quot; to access to the feature or [[variable]]''':&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;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 Used with Feature passed as Varible&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;F(P1)=FEAT/POINT,CART,0,0,0,0,0,1&amp;lt;br /&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;F(P2)=FEAT/POINT,CART,1,0,0,0,0,1&amp;lt;br /&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;M(PASSING_A_FEATURE_AND_A_VARIABLE)=MACRO/'FEATURE_DIRECT',FEATURE_AS_VARIABLE,MYVARIABLE&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;	DECL/LOCAL,DOUBLE, XX&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;	DECL/LOCAL,DOUBLE, XX1&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;	XX=OBTAIN/F(FEATURE_DIRECT),3&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;	XX1=OBTAIN/F(@FEATURE_AS_VARIABLE),3&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;code&amp;gt;	tmpString=[[Assign|ASSIGN]]/CONCAT('The X VALUE OF THE POINT PASSED DIRECTLY IS: ',STR(XX))&lt;br /&gt;
::&amp;lt;code&amp;gt;	TEXT/OPER,tmpString&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;	tmpString=ASSIGN/CONCAT('The X VALUE OF THE POINT PASSED WITH VARIABLE IS: ',STR(XX1))&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;	TEXT/OPER,tmpString&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;	tmpString=ASSIGN/CONCAT('The Variable Passed is: ',STR(MYVARIABLE))&amp;lt;br /&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;	TEXT/OPER,tmpString&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(PASSING_A_FEATURE),(P1),'P2',100&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Dmis_Tutorial]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>