<?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 Re: Number formatting problem with Channel Input in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Number-formatting-problem-with-Channel-Input/m-p/360994#M1502</link>
    <description>&lt;P&gt;GDL txt addon uses only a dot/period as a separator no matter what is a local setting.&lt;/P&gt;&lt;P&gt;BTW: I did a little workaround on txt loading lately:&lt;/P&gt;&lt;P&gt;when walking through the external&amp;nbsp; table (I use it for the tables mostly) I save 2 matrix parameters: First is a string and second is a number. Then to create an output I just merge them together with proper formatting the numbers (STR...). The only drawback is with empty cells.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Nov 2022 10:15:43 GMT</pubDate>
    <dc:creator>Piotr Dobrowolski</dc:creator>
    <dc:date>2022-11-03T10:15:43Z</dc:date>
    <item>
      <title>Number formatting problem with Channel Input</title>
      <link>https://community.graphisoft.com/t5/GDL/Number-formatting-problem-with-Channel-Input/m-p/360661#M1499</link>
      <description>&lt;P&gt;I have a part that opens a .txt file as a channel (TEXT filter), and imports (amongst other things) a date in the dd.mm.yy format.&lt;/P&gt;&lt;P&gt;If the separators used are periods, then everything works fine.&lt;/P&gt;&lt;P&gt;If the separators used are either slashes or hyphens (e.g. dd/mm/yy, or dd-mm-yy) then Archicad will see this as a formula, and give me the result on INPUT before I can do anything with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;E.g.&lt;/P&gt;&lt;P&gt;10.11.22 = 10.11.22&lt;/P&gt;&lt;P&gt;10/11/22 = 0.0413&lt;/P&gt;&lt;P&gt;10-11-22 = -23&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get around this by prefixing the date with a character (e.g. ~) to turn it into a string, then run a STRSUB to extract the date - but if I can get around this I would prefer that instead, as this is an extra step for the user in the *.txt file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 21:31:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Number-formatting-problem-with-Channel-Input/m-p/360661#M1499</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2022-10-31T21:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Number formatting problem with Channel Input</title>
      <link>https://community.graphisoft.com/t5/GDL/Number-formatting-problem-with-Channel-Input/m-p/360669#M1500</link>
      <description>&lt;P&gt;Bruce, I have bad news for you, I guess. It won't work. The text add-on does some weird auto-casting into types and you simply can not get around that, not even by initializing your variables (as you probably found out already).&lt;/P&gt;&lt;P&gt;The only solution is to either force the input to be recognized as text, or to switch to XML – everything is text there and thus predictable.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 22:14:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Number-formatting-problem-with-Channel-Input/m-p/360669#M1500</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2022-10-31T22:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Number formatting problem with Channel Input</title>
      <link>https://community.graphisoft.com/t5/GDL/Number-formatting-problem-with-Channel-Input/m-p/360670#M1501</link>
      <description>&lt;P&gt;Thanks runxel.&amp;nbsp; I guess I'll have to learn XML &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 22:20:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Number-formatting-problem-with-Channel-Input/m-p/360670#M1501</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2022-10-31T22:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Number formatting problem with Channel Input</title>
      <link>https://community.graphisoft.com/t5/GDL/Number-formatting-problem-with-Channel-Input/m-p/360994#M1502</link>
      <description>&lt;P&gt;GDL txt addon uses only a dot/period as a separator no matter what is a local setting.&lt;/P&gt;&lt;P&gt;BTW: I did a little workaround on txt loading lately:&lt;/P&gt;&lt;P&gt;when walking through the external&amp;nbsp; table (I use it for the tables mostly) I save 2 matrix parameters: First is a string and second is a number. Then to create an output I just merge them together with proper formatting the numbers (STR...). The only drawback is with empty cells.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 10:15:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Number-formatting-problem-with-Channel-Input/m-p/360994#M1502</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2022-11-03T10:15:43Z</dc:date>
    </item>
  </channel>
</rss>

