<?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[FileListBox Items]]></title><description><![CDATA[<p>Tagchen,</p>
<p>*frohes Neues*</p>
<p>Ich habe ein Problem mit einer FileListBox. Und zwar brauch ich eine Abfrage, ob es zB den Eintrag 'FileListBox-&gt;Items-&gt;Strings[2]' gibt. Also ob in der Liste mindestens 3 Einträge vorhanden sind.</p>
<p>Ich habs damit probiert:<br />
Code:</p>
<pre><code class="language-cpp">if(FileListBox-&gt;Items-&gt;Strings[2] != &quot;&quot;) 
...
</code></pre>
<p>bzw. mit:</p>
<pre><code class="language-cpp">if(FileListBox-&gt;Items-&gt;Strings[2] != NULL) 
...
</code></pre>
<p>Beide Abfragen sind von der Syntax her richtig, es gibt auch keinen Fehler...nur passieren tut auch nichts...<br />
Kann mir dabei jemand helfen?</p>
<p>greetz KN4CK3R</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/169064/filelistbox-items</link><generator>RSS for Node</generator><lastBuildDate>Thu, 13 Aug 2026 22:23:57 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/169064.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 01 Jan 2007 13:49:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to FileListBox Items on Mon, 01 Jan 2007 13:49:10 GMT]]></title><description><![CDATA[<p>Tagchen,</p>
<p>*frohes Neues*</p>
<p>Ich habe ein Problem mit einer FileListBox. Und zwar brauch ich eine Abfrage, ob es zB den Eintrag 'FileListBox-&gt;Items-&gt;Strings[2]' gibt. Also ob in der Liste mindestens 3 Einträge vorhanden sind.</p>
<p>Ich habs damit probiert:<br />
Code:</p>
<pre><code class="language-cpp">if(FileListBox-&gt;Items-&gt;Strings[2] != &quot;&quot;) 
...
</code></pre>
<p>bzw. mit:</p>
<pre><code class="language-cpp">if(FileListBox-&gt;Items-&gt;Strings[2] != NULL) 
...
</code></pre>
<p>Beide Abfragen sind von der Syntax her richtig, es gibt auch keinen Fehler...nur passieren tut auch nichts...<br />
Kann mir dabei jemand helfen?</p>
<p>greetz KN4CK3R</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1200606</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1200606</guid><dc:creator><![CDATA[KN4CK3R]]></dc:creator><pubDate>Mon, 01 Jan 2007 13:49:10 GMT</pubDate></item><item><title><![CDATA[Reply to FileListBox Items on Mon, 01 Jan 2007 14:09:34 GMT]]></title><description><![CDATA[<p>Warum nicht so? Mindestens 3 Einträge:</p>
<pre><code class="language-cpp">if ( FileListBox1-&gt;Items-&gt;Count &gt;= 3)
{
      //...
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1200613</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1200613</guid><dc:creator><![CDATA[Barracuda]]></dc:creator><pubDate>Mon, 01 Jan 2007 14:09:34 GMT</pubDate></item><item><title><![CDATA[Reply to FileListBox Items on Mon, 01 Jan 2007 14:53:22 GMT]]></title><description><![CDATA[<p>weil ich dann</p>
<pre><code class="language-cpp">if ( FileListBox1-&gt;Items-&gt;Count == 1)
{
      //...
}
if ( FileListBox1-&gt;Items-&gt;Count == 2)
{
      //...
}
if ( FileListBox1-&gt;Items-&gt;Count == 3)
{
      //...
}
...
</code></pre>
<p>schreiben müsste...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1200631</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1200631</guid><dc:creator><![CDATA[KN4CK3R]]></dc:creator><pubDate>Mon, 01 Jan 2007 14:53:22 GMT</pubDate></item><item><title><![CDATA[Reply to FileListBox Items on Mon, 01 Jan 2007 16:48:36 GMT]]></title><description><![CDATA[<p>Mit switch/case würde das etwas übersichtlicher, aber es drängt sich der Eindruk auf, dass dein ganzer Ansatz eher unpraktisch ist.<br />
Was genau soll denn in Abhängigkeit der Itemanzahl passieren?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1200663</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1200663</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Mon, 01 Jan 2007 16:48:36 GMT</pubDate></item><item><title><![CDATA[Reply to FileListBox Items on Mon, 01 Jan 2007 18:21:46 GMT]]></title><description><![CDATA[<p>also:<br />
in der FileListBox stehen Lied-Dateinamen. Die einzelnen Namen werden später in einen Text eingefügt. Es können maximal 9 Lieder in der Liste stehen. Wenn jetzt ein Button gedrückt wird, wird erst einmal eine Zeile in einem RichEditFeld geschrieben. In die nächste Zeile dann Text plus den Liednamen. Als Schleife kann ich das nicht machen, da der Text immer anders ist. Wenn nur 2 Einträge in der Liste sind, soll aber trotzdem für alle 9 Einträge der Text geschrieben werden, nur soll der Teil, an dem der Name stehen würde freigelassen werden.<br />
Dann dacht ich mir, dass ich mit if überprüfe ob es zB den Eintrag Nummer 3 gibt. Wenn ja, soll der Text mit Name geschrieben werden, wenn nein, dann nur der Text...</p>
<p>Ich hoffe mal, das war verständlich.</p>
<p>greetz KN4CK3R</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1200733</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1200733</guid><dc:creator><![CDATA[KN4CK3R]]></dc:creator><pubDate>Mon, 01 Jan 2007 18:21:46 GMT</pubDate></item><item><title><![CDATA[Reply to FileListBox Items on Mon, 01 Jan 2007 18:34:38 GMT]]></title><description><![CDATA[<p>Also, du willst abfragen ob ein bestimmer Eintrag existiert.<br />
Und wenn er existiert willst du in einen Textblock eine bestimmte Zeile dazuschreiben, andernfalls nur eine Leerstelle?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1200745</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1200745</guid><dc:creator><![CDATA[der_andi]]></dc:creator><pubDate>Mon, 01 Jan 2007 18:34:38 GMT</pubDate></item><item><title><![CDATA[Reply to FileListBox Items on Mon, 01 Jan 2007 19:19:14 GMT]]></title><description><![CDATA[<p>kurz und bündig</p>
<p>ja</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1200773</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1200773</guid><dc:creator><![CDATA[KN4CK3R]]></dc:creator><pubDate>Mon, 01 Jan 2007 19:19:14 GMT</pubDate></item><item><title><![CDATA[Reply to FileListBox Items on Mon, 01 Jan 2007 22:44:30 GMT]]></title><description><![CDATA[<p>Und welchen Sinn hat das Programm als ganzes?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1200867</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1200867</guid><dc:creator><![CDATA[der_andi]]></dc:creator><pubDate>Mon, 01 Jan 2007 22:44:30 GMT</pubDate></item><item><title><![CDATA[Reply to FileListBox Items on Mon, 01 Jan 2007 23:27:11 GMT]]></title><description><![CDATA[<p>begnüg dich einfach mit meinem Post von oben. Mehr Infos sind für das Problem nich von Nöten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1200877</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1200877</guid><dc:creator><![CDATA[KN4CK3R]]></dc:creator><pubDate>Mon, 01 Jan 2007 23:27:11 GMT</pubDate></item><item><title><![CDATA[Reply to FileListBox Items on Tue, 02 Jan 2007 00:52:32 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">{
 //Text ins Rich-Edit schreiben

 if (FileListBox1-&gt;Items-&gt;Count == 1)
  //Spezielle Zeile;
 else
  //Leere Zeile;

 //Mehr Text

 //2. Text ins Rich-Edit schreiben

 if (FileListBox1-&gt;Items-&gt;Count == 2)
  //Spezielle Zeile;
 else
  //Leere Zeile;

 //Noch mehr Text

//ect...... 
}
</code></pre>
<p>So, keine besseren Infos, keine bessere Lösung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1200893</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1200893</guid><dc:creator><![CDATA[der_andi]]></dc:creator><pubDate>Tue, 02 Jan 2007 00:52:32 GMT</pubDate></item><item><title><![CDATA[Reply to FileListBox Items on Wed, 17 Jan 2007 08:08:45 GMT]]></title><description><![CDATA[<p>Empfehlenswerter wäre eine StringGrid Kompnonete, weil da kann man in Schleifen auf<br />
die Zellen zugreifen.<br />
Ausserdem könntest du dann deine &quot;Playlists&quot; auch direkt speichern...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1211133</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1211133</guid><dc:creator><![CDATA[ExeCuter]]></dc:creator><pubDate>Wed, 17 Jan 2007 08:08:45 GMT</pubDate></item></channel></rss>