<?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[Suche, mit meldung wenn nihx gefunden..]]></title><description><![CDATA[<p>So nachdem i mir tut mal etwas durchgelesen hab hab ich suche eigentlich geschafft!</p>
<p>hier der text:</p>
<p>Query1-&gt;Close();<br />
Query1-&gt;SQL-&gt;Clear();<br />
Query1-&gt;SQL-&gt;Add(&quot;select * from Table where Name like '&quot; + Edit2-&gt;Text + &quot;%'&quot;);<br />
Query1-&gt;Open();<br />
while (!Query1-&gt;Eof)<br />
{<br />
ListBox3-&gt;Items-&gt;Add(Query1-&gt;FieldByName(&quot;Name&quot;)-&gt;AsString);<br />
Query1-&gt;Next();<br />
}</p>
<p>Das funktioniert auch, also ergibt es mir aus!</p>
<p>Ich will aber, das wenn er nix gefunden hat, mir ne Msg gibt!<br />
Mit if-else hab ichs nich hinbekommen, da kam entweder nur meldung oder nie meldung...</p>
<p>WO muss ich hier was verändern und einsetzten da mit es geht?</p>
<p>danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/90725/suche-mit-meldung-wenn-nihx-gefunden</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Jul 2026 01:12:57 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/90725.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 01 Nov 2004 14:21:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Suche, mit meldung wenn nihx gefunden.. on Mon, 01 Nov 2004 14:21:01 GMT]]></title><description><![CDATA[<p>So nachdem i mir tut mal etwas durchgelesen hab hab ich suche eigentlich geschafft!</p>
<p>hier der text:</p>
<p>Query1-&gt;Close();<br />
Query1-&gt;SQL-&gt;Clear();<br />
Query1-&gt;SQL-&gt;Add(&quot;select * from Table where Name like '&quot; + Edit2-&gt;Text + &quot;%'&quot;);<br />
Query1-&gt;Open();<br />
while (!Query1-&gt;Eof)<br />
{<br />
ListBox3-&gt;Items-&gt;Add(Query1-&gt;FieldByName(&quot;Name&quot;)-&gt;AsString);<br />
Query1-&gt;Next();<br />
}</p>
<p>Das funktioniert auch, also ergibt es mir aus!</p>
<p>Ich will aber, das wenn er nix gefunden hat, mir ne Msg gibt!<br />
Mit if-else hab ichs nich hinbekommen, da kam entweder nur meldung oder nie meldung...</p>
<p>WO muss ich hier was verändern und einsetzten da mit es geht?</p>
<p>danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/642248</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/642248</guid><dc:creator><![CDATA[5erIal]]></dc:creator><pubDate>Mon, 01 Nov 2004 14:21:01 GMT</pubDate></item><item><title><![CDATA[Reply to Suche, mit meldung wenn nihx gefunden.. on Mon, 01 Nov 2004 14:26:17 GMT]]></title><description><![CDATA[<p>du könntest in deiner while-Schleife ne variable vom Typ bool auf true setzen und nach der while-schleife abfragen ob sie true ist und wenn nicht ne Fehlermeldung ausgeben</p>
<p>Bsp:</p>
<pre><code>bool nichleer = false;
while (!Query1-&gt;Eof) 
{ 
ListBox3-&gt;Items-&gt;Add(Query1-&gt;FieldByName(&quot;Name&quot;)-&gt;AsString); 
nichleer = true;
Query1-&gt;Next(); 
} 
if (!nichtleer) ShowMessage(&quot;Keine Ergebnise vorhanden!&quot;);
</code></pre>
<p>oder abfragen wieviele Datensätze du im Query erhalten hast und wenn die Null ist die Message rausbringen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/642253</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/642253</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Mon, 01 Nov 2004 14:26:17 GMT</pubDate></item><item><title><![CDATA[Reply to Suche, mit meldung wenn nihx gefunden.. on Mon, 01 Nov 2004 14:48:25 GMT]]></title><description><![CDATA[<p>Ah danke, werd das morgen ausprobieren...geb dann meldung!</p>
<p>Hoffe es geht...</p>
<p>danke =)!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/642286</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/642286</guid><dc:creator><![CDATA[5erIal]]></dc:creator><pubDate>Mon, 01 Nov 2004 14:48:25 GMT</pubDate></item><item><title><![CDATA[Reply to Suche, mit meldung wenn nihx gefunden.. on Mon, 01 Nov 2004 14:50:29 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich denke was Du brauchst ist das folgende:</p>
<pre><code class="language-cpp">Query1-&gt;Close(); 
Query1-&gt;SQL-&gt;Clear(); 
Query1-&gt;SQL-&gt;Add(&quot;select * from Table where Name like '&quot; + Edit2-&gt;Text + &quot;%'&quot;); 
Query1-&gt;Open(); 
if(Query1-&gt;RecordCount == 0)
{
 ShowMessage(&quot;hierzu wurden keine Daten gefunden&quot;);
}
else
{
 while (!Query1-&gt;Eof) 
 { 
  ListBox3-&gt;Items-&gt;Add(Query1-&gt;FieldByName(&quot;Name&quot;)-&gt;AsString); 
  Query1-&gt;Next(); 
 }
}
</code></pre>
<p>Ich hoffe damit ist Dir geholfen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/642288</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/642288</guid><dc:creator><![CDATA[Mike_2004]]></dc:creator><pubDate>Mon, 01 Nov 2004 14:50:29 GMT</pubDate></item><item><title><![CDATA[Reply to Suche, mit meldung wenn nihx gefunden.. on Mon, 01 Nov 2004 14:54:45 GMT]]></title><description><![CDATA[<p>Hi, mir ist doch noch was aufgefallen:</p>
<p>Bei Dir steht:</p>
<pre><code class="language-cpp">Add(&quot;select * from Table where Name like '&quot; + Edit2-&gt;Text + &quot;%'&quot;);
</code></pre>
<p>Nimm lieber dieses hier:</p>
<pre><code class="language-cpp">Add(&quot;select * from Table where Name like '%&quot; + Edit2-&gt;Text + &quot;%'&quot;);
</code></pre>
<p>Damit suchst Du (bei Namen Markus) nicht nur Mar% , sondern %Mar%.<br />
So sollte er auch Markus finden, wenn Du nur arku eingegeben hast.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/642297</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/642297</guid><dc:creator><![CDATA[Mike_2004]]></dc:creator><pubDate>Mon, 01 Nov 2004 14:54:45 GMT</pubDate></item><item><title><![CDATA[Reply to Suche, mit meldung wenn nihx gefunden.. on Tue, 02 Nov 2004 06:52:38 GMT]]></title><description><![CDATA[<p>na danke, hatte noch keine zeit das zu testen...werd aber beides machen!<br />
Meld mich dann wieder!</p>
<p>Danke schonmal!</p>
<p>serial!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/642634</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/642634</guid><dc:creator><![CDATA[5erIal]]></dc:creator><pubDate>Tue, 02 Nov 2004 06:52:38 GMT</pubDate></item></channel></rss>