<?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[Problem mit CheckListBox]]></title><description><![CDATA[<p>Hallo!</p>
<p>Habe folgendes Problem, habe ein Form mit einer CheckListBox, einem Memofeld und einem Button:<br />
Der CheckListBox werden bei erstellen des Forms 5 Einträge zugewiesen!<br />
Nun möchte ich mit dem Button prüfen, welcher der 5 Einträge angehakt ist und diese Einträge in mein Memo schreiben!<br />
Dazu habe ich folgenden Befehl hinter meinen Button gelegt:</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
int i, j;
j = CheckListBox1-&gt;Count;
for(i=0;i&lt;=j;i++)
  {
    if(CheckListBox1-&gt;Selected[i]) 
      Memo1-&gt;Lines-&gt;Add(CheckListBox1-&gt;Items-&gt;Strings[i]);
  }
}
</code></pre>
<p>Ich hab keine Ahnung ob der Weg in die richtige Richtung geht, vielleicht bin ich auch gerade dabei das Rad neu zu erfinden?</p>
<p>Für eine kurze Hilfe wäre ich dankbar!</p>
<p>Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/83185/problem-mit-checklistbox</link><generator>RSS for Node</generator><lastBuildDate>Wed, 01 Jul 2026 19:45:03 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/83185.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 18 Aug 2004 13:44:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit CheckListBox on Wed, 18 Aug 2004 14:23:22 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Habe folgendes Problem, habe ein Form mit einer CheckListBox, einem Memofeld und einem Button:<br />
Der CheckListBox werden bei erstellen des Forms 5 Einträge zugewiesen!<br />
Nun möchte ich mit dem Button prüfen, welcher der 5 Einträge angehakt ist und diese Einträge in mein Memo schreiben!<br />
Dazu habe ich folgenden Befehl hinter meinen Button gelegt:</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
int i, j;
j = CheckListBox1-&gt;Count;
for(i=0;i&lt;=j;i++)
  {
    if(CheckListBox1-&gt;Selected[i]) 
      Memo1-&gt;Lines-&gt;Add(CheckListBox1-&gt;Items-&gt;Strings[i]);
  }
}
</code></pre>
<p>Ich hab keine Ahnung ob der Weg in die richtige Richtung geht, vielleicht bin ich auch gerade dabei das Rad neu zu erfinden?</p>
<p>Für eine kurze Hilfe wäre ich dankbar!</p>
<p>Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/585444</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/585444</guid><dc:creator><![CDATA[maikmu]]></dc:creator><pubDate>Wed, 18 Aug 2004 14:23:22 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CheckListBox on Wed, 18 Aug 2004 14:05:42 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Hast du es mal ausprobiert?<br />
Schau am besten noch einmal in die Hilfe zu TCheckListBox nach, ob die von dir genutzten Eigenschaften existieren (Count) oder das machen was du willst (Selected) bzw. welche anderen man nehmen sollte (Checked ?).</p>
<p>Ciao</p>
]]></description><link>https://www.c-plusplus.net/forum/post/585469</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/585469</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 18 Aug 2004 14:05:42 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CheckListBox on Wed, 18 Aug 2004 14:13:53 GMT]]></title><description><![CDATA[<p>Danke, werds mal kurz prüfen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/585478</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/585478</guid><dc:creator><![CDATA[maikmu]]></dc:creator><pubDate>Wed, 18 Aug 2004 14:13:53 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CheckListBox on Wed, 18 Aug 2004 14:46:39 GMT]]></title><description><![CDATA[<p>Kann mir jetzt bitte mal einer weiterhelfen hier, ich komm so nicht weiter!</p>
<p>Ich habs mit checked auch mal probiert, klappt aber nicht!</p>
<p>Ausserdem funktioniert in meiner Trialversion kein Hilfesystem, deshalb ist das ganze sehr mühsam für mich!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/585514</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/585514</guid><dc:creator><![CDATA[maikmu]]></dc:creator><pubDate>Wed, 18 Aug 2004 14:46:39 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CheckListBox on Wed, 18 Aug 2004 14:57:58 GMT]]></title><description><![CDATA[<p>Was klappt nicht ?<br />
Ausnahmsweise kommt jetzt mal etwas Code.</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
for(int i=0; i&lt;CheckListBox1-&gt;Items-&gt;Count; ++i)
  {
    if(CheckListBox1-&gt;Checked[i]) 
      Memo1-&gt;Lines-&gt;Add(CheckListBox1-&gt;Items-&gt;Strings[i]);
  }
}
</code></pre>
<p>Vergleiche bitte mal das mit deinem Code. Das mache ich aber nur, weil deine Hilfesystem nicht geht. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/585528</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/585528</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 18 Aug 2004 14:57:58 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CheckListBox on Wed, 18 Aug 2004 15:07:27 GMT]]></title><description><![CDATA[<p>maikmu schrieb:</p>
<blockquote>
<p>Ausserdem funktioniert in meiner Trialversion kein Hilfesystem</p>
</blockquote>
<p>Hi,<br />
warum geht denn dein Hilfesystem nicht? Installiere den BCB neu oder lade ihn neu runter o.ä. Sonst wirst du bald nicht mehr weiterkommen....</p>
<p>MfG</p>
<p>Alexander Sulfrian</p>
<p>PS: Versuche mal als Admin im Bin/oh.exe das Projekt Help/bcb6.ohp zu öffnen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/585548</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/585548</guid><dc:creator><![CDATA[Alexander Sulfrian]]></dc:creator><pubDate>Wed, 18 Aug 2004 15:07:27 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CheckListBox on Wed, 18 Aug 2004 15:09:19 GMT]]></title><description><![CDATA[<p>Danke,</p>
<p>es funktioniert aber noch nicht richtig!<br />
Nochmal, was ich möchte:</p>
<p>In meinem Memo sollen nur die Einträge erscheinen, die auch wirklich angehakt sind, im Moment kommt nur der Eintrag der selektiert ist, egal ob ein Haken gesetzt ist oder nicht!</p>
<p>Gruß</p>
<p>Maik</p>
]]></description><link>https://www.c-plusplus.net/forum/post/585550</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/585550</guid><dc:creator><![CDATA[maikmu]]></dc:creator><pubDate>Wed, 18 Aug 2004 15:09:19 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CheckListBox on Wed, 18 Aug 2004 15:09:52 GMT]]></title><description><![CDATA[<p>maikmu schrieb:</p>
<blockquote>
<p>Ausserdem funktioniert in meiner Trialversion kein Hilfesystem,</p>
</blockquote>
<p>Dies wage ich schwer zu bezweifeln. Ausser man hats nicht installiert. Aber das lässt sich nachholen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/585552</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/585552</guid><dc:creator><![CDATA[junix]]></dc:creator><pubDate>Wed, 18 Aug 2004 15:09:52 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CheckListBox on Thu, 19 Aug 2004 11:57:04 GMT]]></title><description><![CDATA[<p>Das Zauberwort ist:<br />
<strong>CheckListBox1-&gt;State[i]</strong><br />
Auf jeden Fall mach ich's so immer.</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{  
  for (int i=0;i&lt;CheckListBox1-&gt;Items-&gt;Count;i++)
  { if (CheckListBox1-&gt;State[i])
      Memo1-&gt;Lines-&gt;Add(CheckListBox1-&gt;Items-&gt;Strings[i]);
  }
}
</code></pre>
<p>Gruß</p>
<p>DM</p>
]]></description><link>https://www.c-plusplus.net/forum/post/586254</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/586254</guid><dc:creator><![CDATA[DMarko]]></dc:creator><pubDate>Thu, 19 Aug 2004 11:57:04 GMT</pubDate></item></channel></rss>