<?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: Recordset ToArray not working... in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/recordset-toarray-not-working/m-p/166897#M1194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It doesn't fix the problem but I should have assigned an array variable to the recordset ToArray method in the example above:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim RS, anArray&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set RS = Application.CreateAppObject("RecordSet")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; RS.Open "C:\Temp\Trees.dbf",1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Console.print RS.RecordCount 'check recordset is open&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; anArray = RS.ToArray 'error here&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas anyone?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Mar 2011 21:12:09 GMT</pubDate>
    <dc:creator>SteveFitzgerald</dc:creator>
    <dc:date>2011-03-29T21:12:09Z</dc:date>
    <item>
      <title>Recordset ToArray not working...</title>
      <link>https://community.esri.com/t5/arcpad-questions/recordset-toarray-not-working/m-p/166896#M1193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;According to the Arcpad Studio help file the Recordset object has a ToArray method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;An example is given using an AXF file. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have successfully ran the example in a console window without problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try to use the ToArray method with a dbf file however, it gives me an "object doesn't support this action" error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim RS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set RS = Application.CreateAppObject("RecordSet")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; RS.Open "C:\Temp\Trees.dbf",1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Console.print RS.RecordCount&amp;nbsp; 'check recordset is open&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; RS.ToArray 'error here&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas anyone?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2011 09:13:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/recordset-toarray-not-working/m-p/166896#M1193</guid>
      <dc:creator>SteveFitzgerald</dc:creator>
      <dc:date>2011-03-29T09:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Recordset ToArray not working...</title>
      <link>https://community.esri.com/t5/arcpad-questions/recordset-toarray-not-working/m-p/166897#M1194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It doesn't fix the problem but I should have assigned an array variable to the recordset ToArray method in the example above:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim RS, anArray&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set RS = Application.CreateAppObject("RecordSet")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; RS.Open "C:\Temp\Trees.dbf",1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Console.print RS.RecordCount 'check recordset is open&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; anArray = RS.ToArray 'error here&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas anyone?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2011 21:12:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/recordset-toarray-not-working/m-p/166897#M1194</guid>
      <dc:creator>SteveFitzgerald</dc:creator>
      <dc:date>2011-03-29T21:12:09Z</dc:date>
    </item>
  </channel>
</rss>

