<?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 Stop adding rows based on what the text contains in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Stop-adding-rows-based-on-what-the-text-contains/m-p/283684#M3928</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;I have a way of working this problem out. I just don't know how to implement it.&lt;BR /&gt;
(I apologise for the amount of posts but this is very frustrating!!)&lt;BR /&gt;
All I need is the ability to stop counting the lines based on what one of the rows contains. &lt;BR /&gt;
Is there a function that will do what I want it to?&lt;BR /&gt;
&lt;BR /&gt;
The row that I don't want to include starts with "EF_25" which is what I should be able to use to identify it but I just don't know the line/s of script that will help me achieve it.&lt;BR /&gt;

&lt;PRE&gt;DIM sarray[]
var = ""
! file in the library, containing parameter data
filename = "ProjectNotes.txt"
ch1 = OPEN ("text", filename, "MODE=RO, LIBRARY")
i = 1
j = 1
y=1
sarray[x1] = ""
for z = 1 to x1
    n = INPUT (ch1, y, 1, var)
        sarray&lt;J&gt; = var
        j = j + 1
   		i = i + 1
		y=y+1
next z
CLOSE ch1
! parameter popup with strings read from the file
VALUES "RefNote" sarray

x1 = vardim1(sarray)
&lt;/J&gt;&lt;/PRE&gt;

Thank you.&lt;/R&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 13 Apr 2018 09:08:56 GMT</pubDate>
    <dc:creator>JGoode</dc:creator>
    <dc:date>2018-04-13T09:08:56Z</dc:date>
    <item>
      <title>Stop adding rows based on what the text contains</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stop-adding-rows-based-on-what-the-text-contains/m-p/283684#M3928</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;I have a way of working this problem out. I just don't know how to implement it.&lt;BR /&gt;
(I apologise for the amount of posts but this is very frustrating!!)&lt;BR /&gt;
All I need is the ability to stop counting the lines based on what one of the rows contains. &lt;BR /&gt;
Is there a function that will do what I want it to?&lt;BR /&gt;
&lt;BR /&gt;
The row that I don't want to include starts with "EF_25" which is what I should be able to use to identify it but I just don't know the line/s of script that will help me achieve it.&lt;BR /&gt;

&lt;PRE&gt;DIM sarray[]
var = ""
! file in the library, containing parameter data
filename = "ProjectNotes.txt"
ch1 = OPEN ("text", filename, "MODE=RO, LIBRARY")
i = 1
j = 1
y=1
sarray[x1] = ""
for z = 1 to x1
    n = INPUT (ch1, y, 1, var)
        sarray&lt;J&gt; = var
        j = j + 1
   		i = i + 1
		y=y+1
next z
CLOSE ch1
! parameter popup with strings read from the file
VALUES "RefNote" sarray

x1 = vardim1(sarray)
&lt;/J&gt;&lt;/PRE&gt;

Thank you.&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Apr 2018 09:08:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stop-adding-rows-based-on-what-the-text-contains/m-p/283684#M3928</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2018-04-13T09:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Stop adding rows based on what the text contains</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stop-adding-rows-based-on-what-the-text-contains/m-p/283685#M3929</link>
      <description>Haven't you try the DATA Addon? The first entry in each line you can use as searchfield and then read the rest of only this line.&lt;BR /&gt;
In the GDL cookbook it is  explained well. (&lt;A href="https://www.nottingham.ac.uk/~lazwww/cookbook/" target="_blank"&gt;https://www.nottingham.ac.uk/~lazwww/cookbook/&lt;/A&gt;)</description>
      <pubDate>Sat, 14 Apr 2018 09:41:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stop-adding-rows-based-on-what-the-text-contains/m-p/283685#M3929</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2018-04-14T09:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Stop adding rows based on what the text contains</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stop-adding-rows-based-on-what-the-text-contains/m-p/283686#M3930</link>
      <description>Hi.&lt;BR /&gt;
You could use STRSTR for each line and [GOTO "label"] outside the counting loop once the string is found.&lt;BR /&gt;
&lt;BR /&gt;
Best regards.</description>
      <pubDate>Mon, 16 Apr 2018 15:36:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stop-adding-rows-based-on-what-the-text-contains/m-p/283686#M3930</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2018-04-16T15:36:36Z</dc:date>
    </item>
  </channel>
</rss>

