<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Parameter Problem in ADOCommand1]]></title><description><![CDATA[<p>Ich habe den folgenden code von dem BCB Developer Guide 6 genomen und getan was die dort gesabt haben aber ich bekome immer den error :</p>
<p>AdoCommand1 Parameter ':StateParam' not found</p>
<pre><code class="language-cpp">ADOCommand1-&gt;CommandText = &quot;SELECT Username, PWD &quot;;
ADOCommand1-&gt;CommandText += &quot;FROM Coupons&quot;;
ADOCommand1-&gt;CommandText += &quot;WHERE Username = :StateParam&quot;;
ADOCommand1-&gt;CommandType = cmdText;
ADOCommand1-&gt;Parameters-&gt;ParamByName(&quot;StateParam&quot;)-&gt;Value = &quot;test&quot;;
ADODataSet1-&gt;Recordset =  ADOCommand1-&gt;Execute();
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/148152/parameter-problem-in-adocommand1</link><generator>RSS for Node</generator><lastBuildDate>Thu, 06 Aug 2026 15:50:49 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/148152.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 23 May 2006 20:27:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Parameter Problem in ADOCommand1 on Tue, 23 May 2006 20:27:55 GMT]]></title><description><![CDATA[<p>Ich habe den folgenden code von dem BCB Developer Guide 6 genomen und getan was die dort gesabt haben aber ich bekome immer den error :</p>
<p>AdoCommand1 Parameter ':StateParam' not found</p>
<pre><code class="language-cpp">ADOCommand1-&gt;CommandText = &quot;SELECT Username, PWD &quot;;
ADOCommand1-&gt;CommandText += &quot;FROM Coupons&quot;;
ADOCommand1-&gt;CommandText += &quot;WHERE Username = :StateParam&quot;;
ADOCommand1-&gt;CommandType = cmdText;
ADOCommand1-&gt;Parameters-&gt;ParamByName(&quot;StateParam&quot;)-&gt;Value = &quot;test&quot;;
ADODataSet1-&gt;Recordset =  ADOCommand1-&gt;Execute();
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1063834</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1063834</guid><dc:creator><![CDATA[shakoush2001]]></dc:creator><pubDate>Tue, 23 May 2006 20:27:55 GMT</pubDate></item><item><title><![CDATA[Reply to Parameter Problem in ADOCommand1 on Tue, 23 May 2006 21:20:35 GMT]]></title><description><![CDATA[<p><a href="http://codecentral.borland.com/Item.aspx?id=20128" rel="nofollow">http://codecentral.borland.com/Item.aspx?id=20128</a></p>
<p>Seems there is alot of the sample code wrong in the Examples of ADO</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1063863</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1063863</guid><dc:creator><![CDATA[shakoush2001]]></dc:creator><pubDate>Tue, 23 May 2006 21:20:35 GMT</pubDate></item><item><title><![CDATA[Reply to Parameter Problem in ADOCommand1 on Wed, 24 May 2006 05:37:26 GMT]]></title><description><![CDATA[<p>falls es immernoch nicht funktioniert versuchs mal so:</p>
<pre><code class="language-cpp">ADOCommand1-&gt;CommandText = &quot;SELECT Username, PWD &quot;; 
ADOCommand1-&gt;CommandText = ADOCommand1-&gt;CommandText + &quot;FROM Coupons &quot;; 
ADOCommand1-&gt;CommandText = ADOCommand1-&gt;CommandText + &quot;WHERE Username = :StateParam&quot;; 
ADOCommand1-&gt;CommandType = cmdText; 
ADOCommand1-&gt;Parameters-&gt;ParamByName(&quot;StateParam&quot;)-&gt;Value = &quot;test&quot;; 
ADODataSet1-&gt;Recordset =  ADOCommand1-&gt;Execute();
</code></pre>
<p>der Operator += ist bei AnsiStrings nicht günstig, zumindest nach meinen Erfahrungen</p>
<p>und man sollte beachten, dass man keine Lerrzeichen im String vergisst, vorallem bei zusammengesetzten Strings</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1063934</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1063934</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Wed, 24 May 2006 05:37:26 GMT</pubDate></item><item><title><![CDATA[Reply to Parameter Problem in ADOCommand1 on Wed, 24 May 2006 07:32:28 GMT]]></title><description><![CDATA[<p>Das is richtig..man mus alles auf einer linie haben oder man soll nicht += fur Ansistrings benutzen...allso ich habe damit zwei stunden gearbeitet ...dann war es genug...also der Developers Guide sollte schon ein bischen besser getestet sein...</p>
<p>Note:</p>
<p>ADODataSet1-&gt;Recordset = ADOCommand1-&gt;Execute();</p>
<p>Ist alls '**ADOCommand1-&gt;**Recordset = ADOCommand1-&gt;Execute();' im developers guide angezeigt und das ist auch falsch...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1063969</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1063969</guid><dc:creator><![CDATA[shakoush2001]]></dc:creator><pubDate>Wed, 24 May 2006 07:32:28 GMT</pubDate></item></channel></rss>