<?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 How to delete/reset an array? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-delete-reset-an-array/m-p/264548#M4229</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi,&lt;BR /&gt;
i have an array used more than once through a subroutine (sort it). The data stored in array varies, so does the length of the array. The problem is that I access/use array length through vardim1(array).&lt;BR /&gt;
&lt;BR /&gt;
If in a previous use of the subroutine the array was longer, the array stays the same (longest)  length, and the sorting algorithm will sort junk into the array.&lt;BR /&gt;
&lt;BR /&gt;
So I would need resetting/deleting the existing array (of that name).&lt;BR /&gt;
&lt;BR /&gt;
Is there a sollution for this? (Without splitting the stuff into different macros that will slower running it.)&lt;/T&gt;&lt;/DIV&gt;</description>
    <pubDate>Sat, 03 Feb 2018 22:18:42 GMT</pubDate>
    <dc:creator>Sam Karli</dc:creator>
    <dc:date>2018-02-03T22:18:42Z</dc:date>
    <item>
      <title>How to delete/reset an array?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-delete-reset-an-array/m-p/264548#M4229</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi,&lt;BR /&gt;
i have an array used more than once through a subroutine (sort it). The data stored in array varies, so does the length of the array. The problem is that I access/use array length through vardim1(array).&lt;BR /&gt;
&lt;BR /&gt;
If in a previous use of the subroutine the array was longer, the array stays the same (longest)  length, and the sorting algorithm will sort junk into the array.&lt;BR /&gt;
&lt;BR /&gt;
So I would need resetting/deleting the existing array (of that name).&lt;BR /&gt;
&lt;BR /&gt;
Is there a sollution for this? (Without splitting the stuff into different macros that will slower running it.)&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 03 Feb 2018 22:18:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-delete-reset-an-array/m-p/264548#M4229</guid>
      <dc:creator>Sam Karli</dc:creator>
      <dc:date>2018-02-03T22:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete/reset an array?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-delete-reset-an-array/m-p/264549#M4230</link>
      <description>Just realized that dim can be used multiple times and thus for resetting arrays.</description>
      <pubDate>Sat, 03 Feb 2018 23:14:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-delete-reset-an-array/m-p/264549#M4230</guid>
      <dc:creator>Sam Karli</dc:creator>
      <dc:date>2018-02-03T23:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete/reset an array?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-delete-reset-an-array/m-p/264550#M4231</link>
      <description>Just a question,&lt;BR /&gt;
&lt;BR /&gt;
Have you been successful to achieve the same thing for array parameter ?</description>
      <pubDate>Mon, 28 Jan 2019 22:26:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-delete-reset-an-array/m-p/264550#M4231</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-01-28T22:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete/reset an array?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-delete-reset-an-array/m-p/264551#M4232</link>
      <description>&lt;BLOCKQUOTE&gt;Moonlight wrote:&lt;BR /&gt;
Just a question,&lt;BR /&gt;
&lt;BR /&gt;
Have you been successful to achieve the same thing for array parameter ?
&lt;/BLOCKQUOTE&gt;

I don't think you can delete just one array parameter easily.&lt;BR /&gt;
&lt;BR /&gt;
My understanding and as explained in the other post I think ...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?p=293488#p293488" target="_blank"&gt;&lt;LINK_TEXT text="viewtopic.php?p=293488#p293488"&gt;https://archicad-talk.graphisoft.com/viewtopic.php?p=293488#p293488&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
You have to read all of the array values into an new array.&lt;BR /&gt;
Then reset the original array and then add back all of the values except the one you want.&lt;BR /&gt;
Effectively you will have deleted the value that you want.&lt;BR /&gt;
That is about my limit of knowledge with arrays.&lt;BR /&gt;
I have never actually tried doing this myself.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 29 Jan 2019 01:54:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-delete-reset-an-array/m-p/264551#M4232</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2019-01-29T01:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete/reset an array?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-delete-reset-an-array/m-p/264552#M4233</link>
      <description>Hi Barry,&lt;BR /&gt;
&lt;BR /&gt;
I already have done that and it doesn't work, and I don't know why, so I´m open to suggestions</description>
      <pubDate>Tue, 29 Jan 2019 12:12:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-delete-reset-an-array/m-p/264552#M4233</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-01-29T12:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete/reset an array?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-delete-reset-an-array/m-p/264553#M4234</link>
      <description>To Barry,&lt;BR /&gt;
&lt;BR /&gt;
I have found what is wrong, and I will write it in detail in this link.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?f=6&amp;amp;t=66012" target="_blank"&gt;&lt;LINK_TEXT text="viewtopic.php?f=6&amp;amp;t=66012"&gt;https://archicad-talk.graphisoft.com/viewtopic.php?f=6&amp;amp;t=66012&lt;/LINK_TEXT&gt;&lt;/A&gt;</description>
      <pubDate>Tue, 29 Jan 2019 16:31:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-delete-reset-an-array/m-p/264553#M4234</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-01-29T16:31:05Z</dc:date>
    </item>
  </channel>
</rss>

