<?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[Eine Variable für viele CheckBoxen.]]></title><description><![CDATA[<p>Hi,<br />
ich muss euch leider mal wieder nerven mit dingen, die wahrscheinlich sehr einfach zu lösen sind <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /> .</p>
<p>Zur Zeit sieht mein Quelltext folgendermaßen aus:</p>
<pre><code>TIniFile *ini;
   ini = new TIniFile (&quot;.\\status.ini&quot;);
   ini-&gt;WriteString ( &quot;CheckBox1&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox1-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox2&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox2-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox3&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox3-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox4&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox4-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox5&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox5-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox6&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox6-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox7&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox7-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox8&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox8-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox9&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox9-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox10&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox10-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox11&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox11-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox12&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox12-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox13&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox13-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox14&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox14-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox15&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox15-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox16&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox16-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox17&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox17-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox18&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox18-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox19&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox19-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox20&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox20-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox21&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox21-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox22&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox22-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox23&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox23-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox24&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox24-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox25&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox25-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox26&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox26-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox27&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox27-&gt;State);
   delete ini;
</code></pre>
<p>Wie kann ich eine Variable definieren, die alle CheckBoxen behinhaltet, sodass ich nicht mehr so viel schreiben muss?<br />
Geht das mit dem Code, der oben steht?<br />
...ein Beispiel mit meinen Angaben wäre nett <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> .</p>
<p>MfG<br />
Andi</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/86630/eine-variable-für-viele-checkboxen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 03 Jul 2026 16:34:54 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/86630.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 21 Sep 2004 11:16:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Eine Variable für viele CheckBoxen. on Tue, 21 Sep 2004 11:16:54 GMT]]></title><description><![CDATA[<p>Hi,<br />
ich muss euch leider mal wieder nerven mit dingen, die wahrscheinlich sehr einfach zu lösen sind <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /> .</p>
<p>Zur Zeit sieht mein Quelltext folgendermaßen aus:</p>
<pre><code>TIniFile *ini;
   ini = new TIniFile (&quot;.\\status.ini&quot;);
   ini-&gt;WriteString ( &quot;CheckBox1&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox1-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox2&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox2-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox3&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox3-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox4&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox4-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox5&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox5-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox6&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox6-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox7&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox7-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox8&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox8-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox9&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox9-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox10&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox10-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox11&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox11-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox12&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox12-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox13&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox13-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox14&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox14-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox15&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox15-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox16&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox16-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox17&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox17-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox18&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox18-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox19&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox19-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox20&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox20-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox21&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox21-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox22&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox22-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox23&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox23-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox24&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox24-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox25&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox25-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox26&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox26-&gt;State);
   ini-&gt;WriteString ( &quot;CheckBox27&quot;, &quot;Enabled&quot;, Form1-&gt;CheckBox27-&gt;State);
   delete ini;
</code></pre>
<p>Wie kann ich eine Variable definieren, die alle CheckBoxen behinhaltet, sodass ich nicht mehr so viel schreiben muss?<br />
Geht das mit dem Code, der oben steht?<br />
...ein Beispiel mit meinen Angaben wäre nett <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> .</p>
<p>MfG<br />
Andi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/611770</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/611770</guid><dc:creator><![CDATA[neobanz]]></dc:creator><pubDate>Tue, 21 Sep 2004 11:16:54 GMT</pubDate></item><item><title><![CDATA[Reply to Eine Variable für viele CheckBoxen. on Tue, 21 Sep 2004 11:37:27 GMT]]></title><description><![CDATA[<p>Ich will dir ja nicht zu nahe treten, aber von der Suche oder FAQ hälst du wohl nicht viel oder? Weil mit einem Blick in die FAQ beispielsweise hättest du folgendes gefunden: <a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39207" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic.php?t=39207</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/611792</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/611792</guid><dc:creator><![CDATA[PuppetMaster2k]]></dc:creator><pubDate>Tue, 21 Sep 2004 11:37:27 GMT</pubDate></item><item><title><![CDATA[Reply to Eine Variable für viele CheckBoxen. on Tue, 21 Sep 2004 11:39:27 GMT]]></title><description><![CDATA[<p>sorry <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/611794</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/611794</guid><dc:creator><![CDATA[neobanz]]></dc:creator><pubDate>Tue, 21 Sep 2004 11:39:27 GMT</pubDate></item></channel></rss>