<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic What are the limits of a Variant in FlexScript? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/what-are-the-limits-of-a-variant-in-flexscript/m-p/13487018#M5367</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 16.0.1 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;In the version 7.7 release notes regarding commands that have been modified to take/return Variants instead of doubles, there is a description of bad code and good code. Do I have it right that I can 
store a node as a Variant in a table, label, a bundle value or a 
structure in FlexScript?&lt;/P&gt;&lt;P&gt;What are the limits of a Variant in FlexScript?&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jun 2016 15:52:27 GMT</pubDate>
    <dc:creator>joerg_vogel_HsH</dc:creator>
    <dc:date>2016-06-03T15:52:27Z</dc:date>
    <item>
      <title>What are the limits of a Variant in FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/what-are-the-limits-of-a-variant-in-flexscript/m-p/13487018#M5367</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 16.0.1 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;In the version 7.7 release notes regarding commands that have been modified to take/return Variants instead of doubles, there is a description of bad code and good code. Do I have it right that I can 
store a node as a Variant in a table, label, a bundle value or a 
structure in FlexScript?&lt;/P&gt;&lt;P&gt;What are the limits of a Variant in FlexScript?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 15:52:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/what-are-the-limits-of-a-variant-in-flexscript/m-p/13487018#M5367</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2016-06-03T15:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: What are the limits of a Variant in FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/what-are-the-limits-of-a-variant-in-flexscript/m-p/13487019#M5368</link>
      <description>&lt;P&gt;
	In FlexScript, you can store a node in a variant: 
	&lt;CODE&gt;var myNode = node("someNode", model());&lt;/CODE&gt; To store that value in a treenode (or as a cell in a table), you would use &lt;CODE&gt;nodepoint(nodeadddata(theNode, DATATYPE_COUPLING), myNode)&lt;/CODE&gt;. Bundles currently only support number and string data, so they don't store Variants or nodes.&lt;/P&gt;&lt;P&gt;Labels are a special case. The setlabel and getlabel commands can handle any kind of Variant, including arrays. If you use setlabel, FlexSim will set the datatype of the node to handle whatever variant you give it. For example, if the Variant used in setlabel represents a number, the label node will get number data. If the Variant used in setlabel represents a string, the label node with get string data.&lt;/P&gt;&lt;P&gt;If the Variant used in setlabel is an array, it gets slightly more complicated. The label node is given simple data, a reduced version of object data. That simple data then stored the variant value. This happens for any array type.&lt;/P&gt;&lt;P&gt;If you use getlabel to retrieve the value of a label node, FlexSim will analyze the node, and return a Variant of the correct type.&lt;/P&gt;&lt;P&gt;This means you use can use setlabel and getlabel to work with variants of any type (number, string, node, intarray, doublearray, treenodearray, stringarray). &lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 18:43:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/what-are-the-limits-of-a-variant-in-flexscript/m-p/13487019#M5368</guid>
      <dc:creator>JordanLJohnson</dc:creator>
      <dc:date>2016-06-03T18:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: What are the limits of a Variant in FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/what-are-the-limits-of-a-variant-in-flexscript/m-p/13487020#M5369</link>
      <description>&lt;P&gt;The implementing of the variant concept is still in progress, I think you will update the changes in using it and the involved commands here or in the manual. Many thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2016 07:25:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/what-are-the-limits-of-a-variant-in-flexscript/m-p/13487020#M5369</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2016-06-04T07:25:04Z</dc:date>
    </item>
  </channel>
</rss>

