<?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: Why can &amp;quot;Loop&amp;quot; get items stored in a collection in order? in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Why-can-quot-Loop-quot-get-items-stored-in-a-collection-in-order/m-p/44797#M1181</link>
    <description>Thanks Nicholas that's it I want to know&lt;BR /&gt;&amp;gt;&amp;nbsp;The order of items you see on the collection will always match the order in which Blue Prism loops through them&lt;BR /&gt;I wanted to know the reason for it.&lt;BR /&gt;Thanks again​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mitsuko &lt;BR /&gt;Asia/Tokyo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 12 Mar 2020 01:42:00 GMT</pubDate>
    <dc:creator>sumire</dc:creator>
    <dc:date>2020-03-12T01:42:00Z</dc:date>
    <item>
      <title>Why can "Loop" get items stored in a collection in order?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Why-can-quot-Loop-quot-get-items-stored-in-a-collection-in-order/m-p/44795#M1179</link>
      <description>This is a sample collection "Col1".&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12353.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12523i717B7DF4F2FBEA30/image-size/large?v=v2&amp;amp;px=999" role="button" title="12353.png" alt="12353.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;This process reads the items in "Col1" and outputs each&amp;nbsp; "Name" to&amp;nbsp; "ReadData".&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12354.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12522iD737A21C4717D828/image-size/large?v=v2&amp;amp;px=999" role="button" title="12354.png" alt="12354.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;BR /&gt;Inside "concatenate":&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12355.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12524iCD5700BD33F13F75/image-size/large?v=v2&amp;amp;px=999" role="button" title="12355.png" alt="12355.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;BR /&gt;Execution result is:&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12356.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12525iC8C9124A7DDF1F42/image-size/large?v=v2&amp;amp;px=999" role="button" title="12356.png" alt="12356.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I am wondering why " Loop"&amp;nbsp; get items from "Col1" in order from the top&lt;BR /&gt;I know&amp;nbsp;For Each...Next Statement doesn' t control the order in which to get items.&lt;BR /&gt;Who control the order?&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mitsuko &lt;BR /&gt;Asia/Tokyo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Mar 2020 02:55:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Why-can-quot-Loop-quot-get-items-stored-in-a-collection-in-order/m-p/44795#M1179</guid>
      <dc:creator>sumire</dc:creator>
      <dc:date>2020-03-11T02:55:00Z</dc:date>
    </item>
    <item>
      <title>RE: Why can "Loop" get items stored in a collection in order?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Why-can-quot-Loop-quot-get-items-stored-in-a-collection-in-order/m-p/44796#M1180</link>
      <description>Collections in Blue Prism are based on the .NET DataTable class, which uses a DataRowCollection to store row data, which is what would determine the order of rows. It would not make sense for them to&amp;nbsp;&lt;EM&gt;not&lt;/EM&gt; have a determinate order since it would make it impossible to access a row via index, and things like sorting would be quite pointless. The order of items you see on the collection will always match the order in which Blue Prism loops through them.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nicholas Zejdlik&lt;BR /&gt;RPA Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Mar 2020 13:35:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Why-can-quot-Loop-quot-get-items-stored-in-a-collection-in-order/m-p/44796#M1180</guid>
      <dc:creator>NicholasZejdlik</dc:creator>
      <dc:date>2020-03-11T13:35:00Z</dc:date>
    </item>
    <item>
      <title>RE: Why can "Loop" get items stored in a collection in order?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Why-can-quot-Loop-quot-get-items-stored-in-a-collection-in-order/m-p/44797#M1181</link>
      <description>Thanks Nicholas that's it I want to know&lt;BR /&gt;&amp;gt;&amp;nbsp;The order of items you see on the collection will always match the order in which Blue Prism loops through them&lt;BR /&gt;I wanted to know the reason for it.&lt;BR /&gt;Thanks again​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mitsuko &lt;BR /&gt;Asia/Tokyo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Mar 2020 01:42:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Why-can-quot-Loop-quot-get-items-stored-in-a-collection-in-order/m-p/44797#M1181</guid>
      <dc:creator>sumire</dc:creator>
      <dc:date>2020-03-12T01:42:00Z</dc:date>
    </item>
    <item>
      <title>RE: Why can "Loop" get items stored in a collection in order?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Why-can-quot-Loop-quot-get-items-stored-in-a-collection-in-order/m-p/44798#M1182</link>
      <description>Apparently rows have an internal index assigned that can be used to directly address one specific line and makes a fix order mandatory.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.data.datarowcollection.indexof?view=netframework-4.8#System_Data_DataRowCollection_IndexOf_System_Data_DataRow_" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/dotnet/api/system.data.datarowcollection.indexof?view=netframework-4.8#System_Data_DataRowCollection_IndexOf_System_Data_DataRow_&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The index is assigned in order of how/when rows are added, if not specified otherwise.&lt;BR /&gt;If this would not be the case, the lines could be random whenever data is fetched with the possibility of reading one line twice. &lt;BR /&gt;&lt;BR /&gt;It seems Blue Prism adds additional control mechanism as it is aware of which line was already processes / which one is the current line&lt;BR /&gt;&lt;BR /&gt;I am no programming guru, so I wonder why a datatable (or collection in Blue Prism) shouldn't have fix order?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Walter Koller&lt;BR /&gt;Solution Manager&lt;BR /&gt;Erste Group IT International GmbH&lt;BR /&gt;Europe/Vienna&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Mar 2020 10:37:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Why-can-quot-Loop-quot-get-items-stored-in-a-collection-in-order/m-p/44798#M1182</guid>
      <dc:creator>Walter.Koller</dc:creator>
      <dc:date>2020-03-12T10:37:00Z</dc:date>
    </item>
  </channel>
</rss>

