<?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: Make GDL TEXT I/O ADD-ON read values as strings in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Make-GDL-TEXT-I-O-ADD-ON-read-values-as-strings/m-p/295667#M7677</link>
    <description>Does it help if you declare the variable as a text variable firs before you read the value into?&lt;BR /&gt;
For example if your text variable is 'string_name' then declare it as a string variable before reading the value in.&lt;BR /&gt;

&lt;PRE&gt;string_name = ""&lt;/PRE&gt;

Barry.</description>
    <pubDate>Mon, 04 Jul 2016 09:19:55 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2016-07-04T09:19:55Z</dc:date>
    <item>
      <title>Make GDL TEXT I/O ADD-ON read values as strings</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Make-GDL-TEXT-I-O-ADD-ON-read-values-as-strings/m-p/295666#M7676</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hello, &lt;BR /&gt;
I have a tab-separated text file with numbers and expressions that I'm using in a GDL-object I made. It works good but now I want to modify it to read the values as strings. For example 3-4 should be returned as a string "3-4" and not as -1. For some reason I can't find a solution. Anyone out there with a suggestion? &lt;BR /&gt;
/Karl W&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 Jul 2016 08:24:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Make-GDL-TEXT-I-O-ADD-ON-read-values-as-strings/m-p/295666#M7676</guid>
      <dc:creator>Karl Wir_n</dc:creator>
      <dc:date>2016-07-04T08:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Make GDL TEXT I/O ADD-ON read values as strings</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Make-GDL-TEXT-I-O-ADD-ON-read-values-as-strings/m-p/295667#M7677</link>
      <description>Does it help if you declare the variable as a text variable firs before you read the value into?&lt;BR /&gt;
For example if your text variable is 'string_name' then declare it as a string variable before reading the value in.&lt;BR /&gt;

&lt;PRE&gt;string_name = ""&lt;/PRE&gt;

Barry.</description>
      <pubDate>Mon, 04 Jul 2016 09:19:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Make-GDL-TEXT-I-O-ADD-ON-read-values-as-strings/m-p/295667#M7677</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2016-07-04T09:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Make GDL TEXT I/O ADD-ON read values as strings</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Make-GDL-TEXT-I-O-ADD-ON-read-values-as-strings/m-p/295668#M7678</link>
      <description>No, unfortunately not. I thought of that too.&lt;BR /&gt;
Thank's anyway, Barry.</description>
      <pubDate>Mon, 04 Jul 2016 11:00:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Make-GDL-TEXT-I-O-ADD-ON-read-values-as-strings/m-p/295668#M7678</guid>
      <dc:creator>Karl Wir_n</dc:creator>
      <dc:date>2016-07-04T11:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Make GDL TEXT I/O ADD-ON read values as strings</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Make-GDL-TEXT-I-O-ADD-ON-read-values-as-strings/m-p/295669#M7679</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
You can test if the program thinks that the &lt;BR /&gt;
input string is a number or string with the VARTYPE &lt;BR /&gt;
parameter. If the VARTYPE = 1 then it is a&lt;BR /&gt;
number and you should convert it to a string first.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps.</description>
      <pubDate>Mon, 04 Jul 2016 16:53:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Make-GDL-TEXT-I-O-ADD-ON-read-values-as-strings/m-p/295669#M7679</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-04T16:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Make GDL TEXT I/O ADD-ON read values as strings</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Make-GDL-TEXT-I-O-ADD-ON-read-values-as-strings/m-p/295670#M7680</link>
      <description>Found a solution! In my case I wanted to read values from an external text file as strings, even numerical expressions like 3-4. 3-4 should return as "3-4" and not as -1. By using a dash instead of a minus, writing 3–4 instead of 3-4, the problem was solved.&lt;BR /&gt;
//Karl W</description>
      <pubDate>Thu, 18 Aug 2016 14:09:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Make-GDL-TEXT-I-O-ADD-ON-read-values-as-strings/m-p/295670#M7680</guid>
      <dc:creator>Karl Wir_n</dc:creator>
      <dc:date>2016-08-18T14:09:14Z</dc:date>
    </item>
  </channel>
</rss>

