<?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[Ausgabe in Memo, aber wie nebeneinander? (Selectabfrage)]]></title><description><![CDATA[<p>Hi Leute!</p>
<p>Ich hab nen assi problem! Hab ein SQL Select, und ich will ergebniss in Memo ausgeben, nur schaff ich es nicht nebeneinander:</p>
<pre><code class="language-cpp">void __fastcall TForm4::Auswertung(TObject *Sender)
{
int AnzSpalten=3;

Form3-&gt;Query1-&gt;Close();
Form3-&gt;Query1-&gt;SQL-&gt;Clear();
Form3-&gt;Query1-&gt;SQL-&gt;Add(&quot;select * from Tabelle where Name = 'egal'&quot;);
Form3-&gt;Query1-&gt;Open();
Form3-&gt;Query1-&gt;First();

while (!Form3-&gt;Query1-&gt;Eof)
{
 for (int i=0;i&lt;=AnzSpalten;i++)
  {
  Memo1-&gt;Lines-&gt;Add(Form3-&gt;Query1-&gt;Fields-&gt;Fields[i]-&gt;AsString);
  }
  Form3-&gt;Query1-&gt;Next();
  }

}
</code></pre>
<p>mit ARRAYOFCONST geht es wohl nicht....</p>
<p>wie müsste ich den Code umbasteln damits geht?</p>
<p>Danke für antworten</p>
<p>OP</p>
<p><strong>Edit:</strong><br />
Bitte die <strong><a href="http://c-plusplus.net/forum/faq.php?mode=bbcode" rel="nofollow">Code-Tags</a></strong> benutzen. Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/90722/ausgabe-in-memo-aber-wie-nebeneinander-selectabfrage</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Jul 2026 01:13:21 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/90722.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 01 Nov 2004 14:10:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ausgabe in Memo, aber wie nebeneinander? (Selectabfrage) on Mon, 01 Nov 2004 18:17:22 GMT]]></title><description><![CDATA[<p>Hi Leute!</p>
<p>Ich hab nen assi problem! Hab ein SQL Select, und ich will ergebniss in Memo ausgeben, nur schaff ich es nicht nebeneinander:</p>
<pre><code class="language-cpp">void __fastcall TForm4::Auswertung(TObject *Sender)
{
int AnzSpalten=3;

Form3-&gt;Query1-&gt;Close();
Form3-&gt;Query1-&gt;SQL-&gt;Clear();
Form3-&gt;Query1-&gt;SQL-&gt;Add(&quot;select * from Tabelle where Name = 'egal'&quot;);
Form3-&gt;Query1-&gt;Open();
Form3-&gt;Query1-&gt;First();

while (!Form3-&gt;Query1-&gt;Eof)
{
 for (int i=0;i&lt;=AnzSpalten;i++)
  {
  Memo1-&gt;Lines-&gt;Add(Form3-&gt;Query1-&gt;Fields-&gt;Fields[i]-&gt;AsString);
  }
  Form3-&gt;Query1-&gt;Next();
  }

}
</code></pre>
<p>mit ARRAYOFCONST geht es wohl nicht....</p>
<p>wie müsste ich den Code umbasteln damits geht?</p>
<p>Danke für antworten</p>
<p>OP</p>
<p><strong>Edit:</strong><br />
Bitte die <strong><a href="http://c-plusplus.net/forum/faq.php?mode=bbcode" rel="nofollow">Code-Tags</a></strong> benutzen. Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/642229</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/642229</guid><dc:creator><![CDATA[Optipoint]]></dc:creator><pubDate>Mon, 01 Nov 2004 18:17:22 GMT</pubDate></item><item><title><![CDATA[Reply to Ausgabe in Memo, aber wie nebeneinander? (Selectabfrage) on Mon, 01 Nov 2004 14:20:40 GMT]]></title><description><![CDATA[<p>da könnte String-Addition helfen, wobei du nur dann richtige Spalten bekommst wenn du die fehlenden Freizeichen mit hinzuaddierst</p>
<p>Bsp:</p>
<pre><code>void __fastcall TForm4::Auswertung(TObject *Sender) 
{ 
int AnzSpalten=3; 

Form3-&gt;Query1-&gt;Close(); 
Form3-&gt;Query1-&gt;SQL-&gt;Clear(); 
Form3-&gt;Query1-&gt;SQL-&gt;Add(&quot;select * from Tabelle where Name = 'egal'&quot;); 
Form3-&gt;Query1-&gt;Open(); 
Form3-&gt;Query1-&gt;First(); 

while (!Form3-&gt;Query1-&gt;Eof) 
  { 
  String str = &quot;&quot;;
  for (int i=0;i&lt;=AnzSpalten;i++) 
  { 
  str += Form3-&gt;Query1-&gt;Fields-&gt;Fields[i]-&gt;AsString + &quot; &quot;;
  } 
Memo1-&gt;Lines-&gt;Add(str); 
Form3-&gt;Query1-&gt;Next(); 
} 

}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/642246</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/642246</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Mon, 01 Nov 2004 14:20:40 GMT</pubDate></item><item><title><![CDATA[Reply to Ausgabe in Memo, aber wie nebeneinander? (Selectabfrage) on Tue, 02 Nov 2004 07:34:34 GMT]]></title><description><![CDATA[<p>danke, werd das sobald ich zeit habe gleich mal ausprobieren, bei problemen meld ich mich wieder...=)!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/642651</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/642651</guid><dc:creator><![CDATA[Optipoint]]></dc:creator><pubDate>Tue, 02 Nov 2004 07:34:34 GMT</pubDate></item></channel></rss>