<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'ADODC SQL question' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'ADODC SQL question' posted on the 'Visual Basic' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sun, 19 May 2013 02:00:42 -0700</pubDate>
    <lastBuildDate>Sun, 19 May 2013 02:00:42 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>ADODC SQL question</title>
      <link>http://www.programmersheaven.com/mb/VBasic/302177/302177/adodc-sql-question/</link>
      <description>&lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by snoburnssb at  2005-5-9 21:1:25&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
ok, so i finally get how to do mysql with adodc, but is there any way to get the results of a query directly from the adodc control in array  form?  like:&lt;br /&gt;
&lt;br /&gt;
adodc.recordsource = "SELECT * FROM table WHERE '1'"&lt;br /&gt;
for n = 1 to adodc.recordset.recordcount&lt;br /&gt;
  results(n) = adodc.recordset(n)&lt;br /&gt;
next n&lt;br /&gt;
&lt;br /&gt;
*** if you are familiar with PHP, like:&lt;br /&gt;
$query = "SELECT * FROM table WHERE '1'";&lt;br /&gt;
$results = mysql_query($query);&lt;br /&gt;
$results2 = mysql_fetch_array($results);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBasic/302177/302177/adodc-sql-question/</guid>
      <pubDate>Mon, 09 May 2005 21:00:38 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Re: ADODC SQL question</title>
      <link>http://www.programmersheaven.com/mb/VBasic/302177/302231/re-adodc-sql-question/#302231</link>
      <description>: &lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by snoburnssb at  2005-5-9 21:1:25&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
: ok, so i finally get how to do mysql with adodc, but is there any way to get the results of a query directly from the adodc control in array  form?  like:&lt;br /&gt;
: &lt;br /&gt;
: adodc.recordsource = "SELECT * FROM table WHERE '1'"&lt;br /&gt;
: for n = 1 to adodc.recordset.recordcount&lt;br /&gt;
:   results(n) = adodc.recordset(n)&lt;br /&gt;
: next n&lt;br /&gt;
: &lt;br /&gt;
: *** if you are familiar with PHP, like:&lt;br /&gt;
: $query = "SELECT * FROM table WHERE '1'";&lt;br /&gt;
: $results = mysql_query($query);&lt;br /&gt;
: $results2 = mysql_fetch_array($results);&lt;br /&gt;
&lt;br /&gt;
No, Recordset objects are like cursors in a database.  You have to use the .MoveFirst, .MovePrevious, .MoveNext, and .MoveLast methods to navigate them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: large;"&gt;&lt;em&gt;&lt;span style="color: Blue;"&gt;&lt;span style="color: Red;"&gt;i&lt;/span&gt;nfidel&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
$ select * from users where clue &amp;gt; 0
no rows returned
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBasic/302177/302231/re-adodc-sql-question/#302231</guid>
      <pubDate>Tue, 10 May 2005 08:02:41 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
  </channel>
</rss>