<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=SUBROUTINE</id>
	<title>SUBROUTINE - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=SUBROUTINE"/>
	<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=SUBROUTINE&amp;action=history"/>
	<updated>2026-04-11T11:14:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.ice-online.com/index.php?title=SUBROUTINE&amp;diff=698&amp;oldid=prev</id>
		<title>ConvertBot: mark beginning of macro subroutine</title>
		<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=SUBROUTINE&amp;diff=698&amp;oldid=prev"/>
		<updated>2020-04-27T22:04:30Z</updated>

		<summary type="html">&lt;p&gt;mark beginning of macro subroutine&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;mark beginning of macro subroutine&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[NAME]   - Name of the SUBROUTINE&lt;br /&gt;
[PARAMETER 1] - Optional 1st parameter&lt;br /&gt;
..&lt;br /&gt;
..&lt;br /&gt;
..&lt;br /&gt;
[PARAMETER N] - Optional Nth parameter&lt;br /&gt;
&lt;br /&gt;
SUBROUTINE is a macro-based command that is used to mark the beginning of&lt;br /&gt;
a SUBROUTINE within a macro.  Optional 1-N parameters may be passed to the&lt;br /&gt;
SUBROUTINE.  SUBROUTINES in NeXtMidas are structured just like subroutines&lt;br /&gt;
in FORTRAN, and are used to modularize the macro in a similar way.&lt;br /&gt;
&lt;br /&gt;
SUBROUTINES have a separate results table from the rest of the macro.  This &lt;br /&gt;
means that commands within a SUBROUTINE can only access results declared &lt;br /&gt;
in the SUBROUTINE, and that results declared within a SUBROUTINE are not &lt;br /&gt;
available outside of the SUBROUTINE.&lt;br /&gt;
&lt;br /&gt;
[NOTE: results scoping in SUBROUTINES is NOT YET implemented; up to and &lt;br /&gt;
including 2.6.x, SUBROUTINES work the same way that PROCEDURES do.]&lt;br /&gt;
&lt;br /&gt;
Switches: NONE&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
  startmacro&lt;br /&gt;
    ..&lt;br /&gt;
    call testSub&lt;br /&gt;
    ..&lt;br /&gt;
  endmacro&lt;br /&gt;
&lt;br /&gt;
  subroutine testSub&lt;br /&gt;
    SAY &amp;quot;This is the inside of the subroutine&amp;quot;&lt;br /&gt;
  return&lt;br /&gt;
&lt;br /&gt;
See also: CALL, PROCEDURE, RETURN&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:NXM_Explain]]&lt;/div&gt;</summary>
		<author><name>ConvertBot</name></author>
		
	</entry>
</feed>