<?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[Prüfen ob ein Eintrag in der ListBox markiert ist.]]></title><description><![CDATA[<p>Ich will prüfen ob irgend ein Eintrag in der ListBox markiert ist. Nur leider weiss ich nicht was ich eintragen muss um keinen bestimmten Eintrag zu prüfen.</p>
<pre><code class="language-cpp">if (ListBox1-&gt;Selected[])   //Hier ist das Problem. Zwischen den[] fehlt der entsprechende Eintrag.
ShowMessage(&quot;Programm Läuft&quot;);
else
ShowMessage(&quot;Bitte Eintrag Auswählen&quot;);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/108211/prüfen-ob-ein-eintrag-in-der-listbox-markiert-ist</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Jul 2026 03:55:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/108211.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 27 Apr 2005 12:31:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Prüfen ob ein Eintrag in der ListBox markiert ist. on Wed, 27 Apr 2005 12:32:20 GMT]]></title><description><![CDATA[<p>Ich will prüfen ob irgend ein Eintrag in der ListBox markiert ist. Nur leider weiss ich nicht was ich eintragen muss um keinen bestimmten Eintrag zu prüfen.</p>
<pre><code class="language-cpp">if (ListBox1-&gt;Selected[])   //Hier ist das Problem. Zwischen den[] fehlt der entsprechende Eintrag.
ShowMessage(&quot;Programm Läuft&quot;);
else
ShowMessage(&quot;Bitte Eintrag Auswählen&quot;);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/776622</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/776622</guid><dc:creator><![CDATA[ZeroOne]]></dc:creator><pubDate>Wed, 27 Apr 2005 12:32:20 GMT</pubDate></item><item><title><![CDATA[Reply to Prüfen ob ein Eintrag in der ListBox markiert ist. on Wed, 27 Apr 2005 12:35:44 GMT]]></title><description><![CDATA[<p>entweder du verwendest ListBox-&gt;ItemIndex und fragst ab ob ein gültiger Wert vorhanden ist,<br />
oder du machst ne For-Schleife und gehts jedes einzelne Element mit dem Laufindex durch z.b. ListBox-&gt;ListBox-&gt;Selected[i]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/776628</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/776628</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Wed, 27 Apr 2005 12:35:44 GMT</pubDate></item><item><title><![CDATA[Reply to Prüfen ob ein Eintrag in der ListBox markiert ist. on Wed, 27 Apr 2005 12:37:56 GMT]]></title><description><![CDATA[<p>Hallo</p>
<pre><code class="language-cpp">if (ListBox1-&gt;ItemIndex != -1)   //wenn ItemIndex den Wert -1 zurückgibt, ist kein Eintrag markiert
ShowMessage(&quot;Programm Läuft&quot;);
else
ShowMessage(&quot;Bitte Eintrag Auswählen&quot;);
</code></pre>
<p>Gruß<br />
Jack</p>
]]></description><link>https://www.c-plusplus.net/forum/post/776634</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/776634</guid><dc:creator><![CDATA[Jack84]]></dc:creator><pubDate>Wed, 27 Apr 2005 12:37:56 GMT</pubDate></item><item><title><![CDATA[Reply to Prüfen ob ein Eintrag in der ListBox markiert ist. on Wed, 27 Apr 2005 17:26:53 GMT]]></title><description><![CDATA[<p><em>SelCount</em> heisst das Zauberwort.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/776912</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/776912</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Wed, 27 Apr 2005 17:26:53 GMT</pubDate></item><item><title><![CDATA[Reply to Prüfen ob ein Eintrag in der ListBox markiert ist. on Thu, 28 Apr 2005 05:09:59 GMT]]></title><description><![CDATA[<p>Jansen schrieb:</p>
<blockquote>
<p><em>SelCount</em> heisst das Zauberwort.</p>
</blockquote>
<p>SelCount funktioniert nur wenn MultiSelected true ist</p>
<p>BCB-Hilfe schrieb:</p>
<blockquote>
<p>Beschreibung</p>
<p>SelCount ist eine Nur-Lesen-Eigenschaft, mit der Sie die Anzahl der im Listenfeld markierten Einträge ermitteln können, wenn die Eigenschaft MultiSelect true ist.</p>
<p>Hat MultiSelected den Wert false, ist SelCount immer –1.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/777150</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/777150</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Thu, 28 Apr 2005 05:09:59 GMT</pubDate></item></channel></rss>