<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Transformation Script]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">i found myself spending an hour trying to figure out what went wrong in this simple transform script:<br />
sub Main()<br />
{<br />
return ($1 / 1024 / 1024 / 1024) . " GB";<br />
}</p>
<p dir="auto">I came to the understanding the i can not use "Main" and i have to use "main" and i can not use any other name.<br />
did i understood it correctly ?</p>
<p dir="auto">10x,<br />
Lindeamon</p>
]]></description><link>https://forum.netxms.org/topic/4304/transformation-script</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 12:18:08 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4304.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 12 Feb 2016 10:58:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Transformation Script on Sun, 14 Feb 2016 08:01:23 GMT]]></title><description><![CDATA[<p dir="auto">thank you all.</p>
<p dir="auto">Victor,<br />
it will be great if something like that will be in the "hint".<br />
since i am doing little scripting and not very often, i forget this kind of things and i find my self struggling with the "help".</p>
<p dir="auto">thank you very much,<br />
Lindeamon</p>
]]></description><link>https://forum.netxms.org/post/19247</link><guid isPermaLink="true">https://forum.netxms.org/post/19247</guid><dc:creator><![CDATA[lindeamon]]></dc:creator><pubDate>Sun, 14 Feb 2016 08:01:23 GMT</pubDate></item><item><title><![CDATA[Reply to Transformation Script on Fri, 12 Feb 2016 12:48:32 GMT]]></title><description><![CDATA[<p dir="auto">For anyone looking at this in the future, this also describes how script entry works:<br />
<a href="https://wiki.netxms.org/wiki/UM:NetXMS_Scripting_Language_(NXSL)#Script_entry_point" rel="nofollow ugc">https://wiki.netxms.org/wiki/UM:NetXMS_Scripting_Language_(NXSL)#Script_entry_point</a></p>
]]></description><link>https://forum.netxms.org/post/19237</link><guid isPermaLink="true">https://forum.netxms.org/post/19237</guid><dc:creator><![CDATA[tomaskir]]></dc:creator><pubDate>Fri, 12 Feb 2016 12:48:32 GMT</pubDate></item><item><title><![CDATA[Reply to Transformation Script on Fri, 12 Feb 2016 11:29:24 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">you have to use main (lowercase) or not use main function at all. Correct script would be</p>
<p dir="auto">return ($1 / 1024 / 1024 / 1024) . " GB";</p>
<p dir="auto">or</p>
<p dir="auto">sub main()<br />
{<br />
   return ($1 / 1024 / 1024 / 1024) . " GB";<br />
}</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/19235</link><guid isPermaLink="true">https://forum.netxms.org/post/19235</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 12 Feb 2016 11:29:24 GMT</pubDate></item></channel></rss>