<?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: GDL reading from txt in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-reading-from-txt/m-p/217191#M15958</link>
    <description>..or You can put #2012-01-20 in the textfile and then GDL reads it  as a string.</description>
    <pubDate>Sat, 21 Jan 2012 17:34:58 GMT</pubDate>
    <dc:creator>Pertti Paasky</dc:creator>
    <dc:date>2012-01-21T17:34:58Z</dc:date>
    <item>
      <title>GDL reading from txt</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-reading-from-txt/m-p/217189#M15956</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;When reading from a txt-file to a GDL-object, all numbers are read as numbers. When I put in a date, like 2012-01-20 in the txt file, I want to read it as a string. How do I do that?&lt;BR /&gt;
&lt;BR /&gt;
In the workaround I use now, I put in the date as separate fields: 2012;01;20 and then convert them independently to strings. But then the zeros in the beginning of a number dissappear so it shows the date as 2012-1-20. I'd like it to be shown as 2012-01-20.&lt;BR /&gt;
&lt;BR /&gt;
Please help!&lt;BR /&gt;
&lt;BR /&gt;
I have done scripting in Java, VBscript and PHP. To me GDL seems very odd. It behaves weird, almost buggy. I can't point my finger at it yet, but there's something...&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 20 Jan 2012 10:07:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-reading-from-txt/m-p/217189#M15956</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-20T10:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: GDL reading from txt</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-reading-from-txt/m-p/217190#M15957</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I think you should determine if the variable is &lt;BR /&gt;
considered as a number or as a string with &lt;BR /&gt;
VARTYPE command and convert on the fly.&lt;BR /&gt;
&lt;BR /&gt;
If you want to convert a string to number then&lt;BR /&gt;
use SPLIT and if you want to convert a number &lt;BR /&gt;
to a string then use STR.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps (writing this on a sofa with a mobile &lt;BR /&gt;
phone - so no examples handy).&lt;BR /&gt;
&lt;BR /&gt;
Regards, Juha</description>
      <pubDate>Sat, 21 Jan 2012 13:38:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-reading-from-txt/m-p/217190#M15957</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-21T13:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: GDL reading from txt</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-reading-from-txt/m-p/217191#M15958</link>
      <description>..or You can put #2012-01-20 in the textfile and then GDL reads it  as a string.</description>
      <pubDate>Sat, 21 Jan 2012 17:34:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-reading-from-txt/m-p/217191#M15958</guid>
      <dc:creator>Pertti Paasky</dc:creator>
      <dc:date>2012-01-21T17:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: GDL reading from txt</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-reading-from-txt/m-p/217192#M15959</link>
      <description>Kiitos!&lt;BR /&gt;
&lt;BR /&gt;
Using the #2012-01-24 method and then removing the first character. Works perfectly. That was simple...</description>
      <pubDate>Tue, 24 Jan 2012 16:32:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-reading-from-txt/m-p/217192#M15959</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-24T16:32:40Z</dc:date>
    </item>
  </channel>
</rss>

