<?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=NEW</id>
	<title>NEW - 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=NEW"/>
	<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=NEW&amp;action=history"/>
	<updated>2026-04-14T16:56:38Z</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=NEW&amp;diff=765&amp;oldid=prev</id>
		<title>ConvertBot: creates a new object from the Macro language</title>
		<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=NEW&amp;diff=765&amp;oldid=prev"/>
		<updated>2020-04-27T22:04:50Z</updated>

		<summary type="html">&lt;p&gt;creates a new object from the Macro language&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;creates a new object from the Macro language&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;NAME&amp;gt;  - The fully qualified class name (case sensitive)&lt;br /&gt;
&amp;lt;LABEL&amp;gt; - Results label to referencing the object&lt;br /&gt;
&amp;lt;TABLE&amp;gt; - Table of arguments to initialize the object via the setKey interface&lt;br /&gt;
&lt;br /&gt;
This command creates a new object of type &amp;lt;NAME&amp;gt; and stores it in the results&lt;br /&gt;
table as &amp;lt;LABEL&amp;gt;.  The table &amp;lt;TABLE&amp;gt; is optional - it will initialize the&lt;br /&gt;
objects by calling setKey on each element in the table.&lt;br /&gt;
&lt;br /&gt;
Since NeXtMidas 2.1.0 it is possible to provide arguments to the constructor&lt;br /&gt;
(see examples). If no arguments are given (as in NeXtMidas 2.0.X and earlier)&lt;br /&gt;
the no-argument constructor will be used.&lt;br /&gt;
&lt;br /&gt;
Since NeXtMidas 2.9.0 it is possible to create new arrays. Note that when &lt;br /&gt;
creating arrays of Object type Integer, Double, Float, etc, when passing in&lt;br /&gt;
values you must pass in the same type. For example, to set values in a &lt;br /&gt;
new Double[], you must use Double (object), not double (primitive type).&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
  1. Get the current time from a reference to the Time class library:&lt;br /&gt;
      nM&amp;gt; new nxm.sys.lib.Time tref&lt;br /&gt;
      nM&amp;gt; invoke tCurrent tref.current()&lt;br /&gt;
     will give the current time just like&lt;br /&gt;
      nM&amp;gt; timex NOW t&lt;br /&gt;
&lt;br /&gt;
  2. Create a new object using a constructor that takes in an argument:&lt;br /&gt;
      nM&amp;gt; new java.lang.Integer(4) temp&lt;br /&gt;
      &lt;br /&gt;
  3. Create an array an initialize it&lt;br /&gt;
      nM&amp;gt; new int[] array {1,2,3}&lt;br /&gt;
      &lt;br /&gt;
  4. Create a multi-dimensional array and set a value&lt;br /&gt;
      nM&amp;gt; new java.lang.String[3][5] array&lt;br /&gt;
      nM&amp;gt; res sub1 array(2)  ! get the dimension array  &lt;br /&gt;
      nM&amp;gt; set sub1(4) &amp;quot;Hey, you! Get off of my cloud!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
See Also: INVOKE, SET&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>