<?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: extracting a real number from a string in GDL in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/extracting-a-real-number-from-a-string-in-GDL/m-p/657858#M7556</link>
    <description>&lt;P&gt;It should be something like this ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;text_string = "100x240"
n = SPLIT (text_string, "%nx%n", size1, ss2, size2)


PRINT size1, ss2, size2 !!! 100 x 240&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may need to do further conversion to get the sizes into the unit of choice so you can get the area in the correct unit of measurement you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Apr 2025 11:24:23 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2025-04-01T11:24:23Z</dc:date>
    <item>
      <title>extracting a real number from a string in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/extracting-a-real-number-from-a-string-in-GDL/m-p/657854#M7555</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a string that defines the size of an opening 100x240. How can I extract the two numbers from this string so that I can calculate the area of ​​the opening? I can solve it with text functions in the case of properties, but I can't do it in the case of GDL code.&lt;/P&gt;&lt;P&gt;Can anyone help with this? Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;Gábor&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 11:08:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/extracting-a-real-number-from-a-string-in-GDL/m-p/657854#M7555</guid>
      <dc:creator>Gabor Szelei</dc:creator>
      <dc:date>2025-04-01T11:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: extracting a real number from a string in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/extracting-a-real-number-from-a-string-in-GDL/m-p/657858#M7556</link>
      <description>&lt;P&gt;It should be something like this ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;text_string = "100x240"
n = SPLIT (text_string, "%nx%n", size1, ss2, size2)


PRINT size1, ss2, size2 !!! 100 x 240&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may need to do further conversion to get the sizes into the unit of choice so you can get the area in the correct unit of measurement you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 11:24:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/extracting-a-real-number-from-a-string-in-GDL/m-p/657858#M7556</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2025-04-01T11:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: extracting a real number from a string in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/extracting-a-real-number-from-a-string-in-GDL/m-p/657910#M7557</link>
      <description>&lt;P&gt;Thanks Barry,&lt;BR /&gt;I tried something similar but for some reason it didn't work...&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":frowning_face:"&gt;☹️&lt;/span&gt;&lt;BR /&gt;I hope it works this way!&lt;/P&gt;&lt;P&gt;Thank you again.&lt;/P&gt;&lt;P&gt;Gábor&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 15:57:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/extracting-a-real-number-from-a-string-in-GDL/m-p/657910#M7557</guid>
      <dc:creator>Gabor Szelei</dc:creator>
      <dc:date>2025-04-01T15:57:08Z</dc:date>
    </item>
  </channel>
</rss>

