<?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 Reverse Array (yarra?) in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/reverse-array-yarra/m-p/356172#M71622</link>
    <description>I have a quick question - In a VBA routine - I have an array of an undetermined amount, could be two items or twenty items. what I think I want to do is to reverse the order they are in. i.e. (1, 2, 3, 4) becomes (4, 3, 2, 1). Is there a SIMPLE way to do this??  The size of the array is based on the user pressing the "ADD" command button, which redimensions the array. Any help would be greatly appreciated.&lt;BR /&gt;
Thanks &lt;BR /&gt;
Dave. K</description>
    <pubDate>Wed, 14 Aug 2002 04:24:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2002-08-14T04:24:02Z</dc:date>
    <item>
      <title>Reverse Array (yarra?)</title>
      <link>https://forums.autodesk.com/t5/vba-forum/reverse-array-yarra/m-p/356172#M71622</link>
      <description>I have a quick question - In a VBA routine - I have an array of an undetermined amount, could be two items or twenty items. what I think I want to do is to reverse the order they are in. i.e. (1, 2, 3, 4) becomes (4, 3, 2, 1). Is there a SIMPLE way to do this??  The size of the array is based on the user pressing the "ADD" command button, which redimensions the array. Any help would be greatly appreciated.&lt;BR /&gt;
Thanks &lt;BR /&gt;
Dave. K</description>
      <pubDate>Wed, 14 Aug 2002 04:24:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/reverse-array-yarra/m-p/356172#M71622</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-08-14T04:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse Array (yarra?)</title>
      <link>https://forums.autodesk.com/t5/vba-forum/reverse-array-yarra/m-p/356173#M71623</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Here's a way I have done it, there may be something &lt;BR /&gt;
more efficient out there?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Sub Test()&lt;BR /&gt;&amp;nbsp; Dim sArray(5) As &lt;BR /&gt;
String&lt;BR /&gt;&amp;nbsp; Dim vTemp As Variant&lt;BR /&gt;&amp;nbsp; Dim i As Integer&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp; sArray(0) = "A"&lt;BR /&gt;&amp;nbsp; sArray(1) = "B"&lt;BR /&gt;&amp;nbsp; sArray(2) = &lt;BR /&gt;
"C"&lt;BR /&gt;&amp;nbsp; sArray(3) = "D"&lt;BR /&gt;&amp;nbsp; sArray(4) = "E"&lt;BR /&gt;&amp;nbsp; sArray(5) = &lt;BR /&gt;
"F"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; Do&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vTemp = &lt;BR /&gt;
sArray(i)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sArray(i) = sArray(UBound(sArray) - &lt;BR /&gt;
i)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sArray(UBound(sArray) - i) = &lt;BR /&gt;
vTemp&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i = i + 1&lt;BR /&gt;&amp;nbsp; Loop Until i = (UBound(sArray) + &lt;BR /&gt;
(UBound(sArray) Mod 2)) / 2&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp; For i = LBound(sArray) To &lt;BR /&gt;
UBound(sArray)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.Print sArray(i)&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;
Next&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;End Sub&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp; Jacob Dinardi&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"KingCAD" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:dkingsley@schneiderequip.com"&amp;gt;dkingsley@schneiderequip.com&lt;/A&gt;&amp;gt; &lt;BR /&gt;
  wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:f102de4.-1@WebX.maYIadrTaRb"&amp;gt;news:f102de4.-1@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;I &lt;BR /&gt;
  have a quick question - In a VBA routine - I have an array of an undetermined &lt;BR /&gt;
  amount, could be two items or twenty items. what I think I want to do is to &lt;BR /&gt;
  reverse the order they are in. i.e. (1, 2, 3, 4) becomes (4, 3, 2, 1). Is &lt;BR /&gt;
  there a SIMPLE way to do this?? The size of the array is based on the user &lt;BR /&gt;
  pressing the "ADD" command button, which redimensions the array. Any help &lt;BR /&gt;
  would be greatly appreciated. &lt;BR /&gt;Thanks &lt;BR /&gt;Dave. K&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 14 Aug 2002 06:43:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/reverse-array-yarra/m-p/356173#M71623</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-08-14T06:43:59Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/reverse-array-yarra/m-p/356174#M71624</link>
      <description>Thanks, I'll give that a try. Looks like it will do the trick, But I sure wish there was something a little simpler. In LISP all I need do is "(reverse LIST)" Oh well I guess if it was easy everybody'd be writing programs!&lt;BR /&gt;
SEEYA!&lt;BR /&gt;
&lt;BR /&gt;
Dave. K</description>
      <pubDate>Thu, 15 Aug 2002 03:53:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/reverse-array-yarra/m-p/356174#M71624</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-08-15T03:53:05Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/reverse-array-yarra/m-p/356175#M71625</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;It would be nice to have a built in function, but &lt;BR /&gt;
this is pretty simple, 6 lines of code to actually do the work... you can make &lt;BR /&gt;
your own function and reuse it.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"KingCAD" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:dkingsley@schneiderequip.com"&amp;gt;dkingsley@schneiderequip.com&lt;/A&gt;&amp;gt; &lt;BR /&gt;
  wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:f102de4.1@WebX.maYIadrTaRb"&amp;gt;news:f102de4.1@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Thanks, &lt;BR /&gt;
  I'll give that a try. Looks like it will do the trick, But I sure wish there &lt;BR /&gt;
  was something a little simpler. In LISP all I need do is "(reverse LIST)" Oh &lt;BR /&gt;
  well I guess if it was easy everybody'd be writing programs! &lt;BR /&gt;SEEYA! &lt;BR /&gt;
  &lt;P&gt;Dave. K&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 15 Aug 2002 06:07:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/reverse-array-yarra/m-p/356175#M71625</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-08-15T06:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse Array (yarra?)</title>
      <link>https://forums.autodesk.com/t5/vba-forum/reverse-array-yarra/m-p/356176#M71626</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Instead of reversing the array, just step thru it &lt;BR /&gt;
backwards.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;for i = ubound(myArray) to lbound(myArray) &lt;BR /&gt;
-1&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'do your stuff &lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;next i&lt;BR /&gt;-- &lt;BR /&gt;Bobby C. Jones&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
href="http://www.AcadX.com"&amp;gt;www.AcadX.com&lt;/A&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"KingCAD" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:dkingsley@schneiderequip.com"&amp;gt;dkingsley@schneiderequip.com&lt;/A&gt;&amp;gt; &lt;BR /&gt;
  wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:f102de4.-1@WebX.maYIadrTaRb"&amp;gt;news:f102de4.-1@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;I &lt;BR /&gt;
  have a quick question - In a VBA routine - I have an array of an undetermined &lt;BR /&gt;
  amount, could be two items or twenty items. what I think I want to do is to &lt;BR /&gt;
  reverse the order they are in. i.e. (1, 2, 3, 4) becomes (4, 3, 2, 1). Is &lt;BR /&gt;
  there a SIMPLE way to do this?? The size of the array is based on the user &lt;BR /&gt;
  pressing the "ADD" command button, which redimensions the array. Any help &lt;BR /&gt;
  would be greatly appreciated. &lt;BR /&gt;Thanks &lt;BR /&gt;Dave. K&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 15 Aug 2002 13:30:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/reverse-array-yarra/m-p/356176#M71626</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-08-15T13:30:07Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/reverse-array-yarra/m-p/356177#M71627</link>
      <description>Oops, got a little quick on the draw, that's:&lt;BR /&gt;
&lt;BR /&gt;
for i = ubound(myArray) to lbound(myArray) Step -1&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Bobby C. Jones" &lt;BOBBYJ&gt; wrote in message&lt;BR /&gt;
news:9B4D4013B2CB55C9153D43A78C6C6E0D@in.WebX.maYIadrTaRb...&lt;BR /&gt;
Instead of reversing the array, just step thru it backwards.&lt;BR /&gt;
&lt;BR /&gt;
for i = ubound(myArray) to lbound(myArray) -1&lt;BR /&gt;
    'do your stuff&lt;BR /&gt;
next i&lt;BR /&gt;
--&lt;BR /&gt;
Bobby C. Jones&lt;BR /&gt;
www.AcadX.com&lt;BR /&gt;
"KingCAD" &lt;DKINGSLEY&gt; wrote in message&lt;BR /&gt;
news:f102de4.-1@WebX.maYIadrTaRb...&lt;BR /&gt;
I have a quick question - In a VBA routine - I have an array of an&lt;BR /&gt;
undetermined amount, could be two items or twenty items. what I think I want&lt;BR /&gt;
to do is to reverse the order they are in. i.e. (1, 2, 3, 4) becomes (4, 3,&lt;BR /&gt;
2, 1). Is there a SIMPLE way to do this?? The size of the array is based on&lt;BR /&gt;
the user pressing the "ADD" command button, which redimensions the array.&lt;BR /&gt;
Any help would be greatly appreciated.&lt;BR /&gt;
Thanks&lt;BR /&gt;
Dave. K&lt;/DKINGSLEY&gt;&lt;/BOBBYJ&gt;</description>
      <pubDate>Thu, 15 Aug 2002 13:32:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/reverse-array-yarra/m-p/356177#M71627</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-08-15T13:32:26Z</dc:date>
    </item>
  </channel>
</rss>

