<?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[MaskEdit über Index Lesen]]></title><description><![CDATA[<p>Hallo,</p>
<p>gibt es eine Möglichkeit einen MaskEdit über einen Index zu lesen.<br />
Bisher mache ich es so:</p>
<pre><code class="language-cpp">MaskEdit1-&gt;Text = FloatToStrF(((float)battery_data[0]/10), ffFixed, 7, 1);
     MaskEdit2-&gt;Text = FloatToStrF(((float)battery_data[1]/10), ffFixed, 7, 1);
     MaskEdit3-&gt;Text = FloatToStrF(((float)battery_data[2]/10), ffFixed, 7, 1);
     MaskEdit4-&gt;Text = FloatToStrF(((float)battery_data[3]/10), ffFixed, 7, 1);
     MaskEdit5-&gt;Text = FloatToStrF(((float)battery_data[4]/10), ffFixed, 7, 1);
     MaskEdit6-&gt;Text = FloatToStrF(((float)battery_data[5]/10), ffFixed, 7, 1);
     MaskEdit7-&gt;Text = FloatToStrF(((float)battery_data[6]/10), ffFixed, 7, 1);
     MaskEdit8-&gt;Text = FloatToStrF(((float)battery_data[7]/10), ffFixed, 7, 1);
     MaskEdit9-&gt;Text = FloatToStrF(((float)battery_data[8]/10), ffFixed, 7, 1);
     MaskEdit10-&gt;Text = FloatToStrF(((float)battery_data[9]/10), ffFixed, 7, 1);
</code></pre>
<p>und würde es gerne irgendwie so machen:</p>
<pre><code class="language-cpp">for(unsigned char index = 0; index &lt;= 9; index++)
     {
             ??MaskEdit index+1??? = FloatToStrF(((float)battery_data[index]/10), ffFixed, 7, 1);  //Ich denke mal, man kann hier was über den Zeiger machen        
     }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/95008/maskedit-über-index-lesen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 13:13:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/95008.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 15 Dec 2004 09:53:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MaskEdit über Index Lesen on Wed, 15 Dec 2004 10:33:55 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>gibt es eine Möglichkeit einen MaskEdit über einen Index zu lesen.<br />
Bisher mache ich es so:</p>
<pre><code class="language-cpp">MaskEdit1-&gt;Text = FloatToStrF(((float)battery_data[0]/10), ffFixed, 7, 1);
     MaskEdit2-&gt;Text = FloatToStrF(((float)battery_data[1]/10), ffFixed, 7, 1);
     MaskEdit3-&gt;Text = FloatToStrF(((float)battery_data[2]/10), ffFixed, 7, 1);
     MaskEdit4-&gt;Text = FloatToStrF(((float)battery_data[3]/10), ffFixed, 7, 1);
     MaskEdit5-&gt;Text = FloatToStrF(((float)battery_data[4]/10), ffFixed, 7, 1);
     MaskEdit6-&gt;Text = FloatToStrF(((float)battery_data[5]/10), ffFixed, 7, 1);
     MaskEdit7-&gt;Text = FloatToStrF(((float)battery_data[6]/10), ffFixed, 7, 1);
     MaskEdit8-&gt;Text = FloatToStrF(((float)battery_data[7]/10), ffFixed, 7, 1);
     MaskEdit9-&gt;Text = FloatToStrF(((float)battery_data[8]/10), ffFixed, 7, 1);
     MaskEdit10-&gt;Text = FloatToStrF(((float)battery_data[9]/10), ffFixed, 7, 1);
</code></pre>
<p>und würde es gerne irgendwie so machen:</p>
<pre><code class="language-cpp">for(unsigned char index = 0; index &lt;= 9; index++)
     {
             ??MaskEdit index+1??? = FloatToStrF(((float)battery_data[index]/10), ffFixed, 7, 1);  //Ich denke mal, man kann hier was über den Zeiger machen        
     }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/673529</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/673529</guid><dc:creator><![CDATA[hermes]]></dc:creator><pubDate>Wed, 15 Dec 2004 10:33:55 GMT</pubDate></item><item><title><![CDATA[Reply to MaskEdit über Index Lesen on Wed, 15 Dec 2004 10:01:44 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>du kannst zu Beispiel direkt über den Namen gehen :</p>
<pre><code class="language-cpp">TMaskEdit *MaskEdit = dynamic_cast&lt;TMaskEdit *&gt; (FindComponent(&quot;MaskEdit1&quot;));
</code></pre>
<p>oder du erstellst dir einen Array, das du mit den MaskEdits fütterst :</p>
<pre><code class="language-cpp">TMaskEdits *MaskEditList[10];
...
MaskEditList[0] = MaskEdit1;
...
MaskEditList[0]-&gt;SetFocus();
</code></pre>
<p>ich glaub in der FAQ steht auch etwas dazu.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/673532</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/673532</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Wed, 15 Dec 2004 10:01:44 GMT</pubDate></item><item><title><![CDATA[Reply to MaskEdit über Index Lesen on Wed, 15 Dec 2004 10:25:04 GMT]]></title><description><![CDATA[<p>akari schrieb:</p>
<blockquote>
<p>ich glaub in der FAQ steht auch etwas dazu.</p>
</blockquote>
<p>Tja, da muss hermes jetzt ja zum Glück nicht mehr nachschauen. Super. <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>Ok, ist ja dein Problem:</p>
]]></description><link>https://www.c-plusplus.net/forum/post/673544</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/673544</guid><dc:creator><![CDATA[HEZ]]></dc:creator><pubDate>Wed, 15 Dec 2004 10:25:04 GMT</pubDate></item><item><title><![CDATA[Reply to MaskEdit über Index Lesen on Wed, 15 Dec 2004 10:40:07 GMT]]></title><description><![CDATA[<p>akari schrieb:</p>
<blockquote>
<p>Hallo<br />
oder du erstellst dir einen Array, das du mit den MaskEdits fütterst :</p>
</blockquote>
<p>Das mit dem Array habe ich auch schon vorgehabt und werde es nun auch so machen.</p>
<p>Danke für die Hilfe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/673549</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/673549</guid><dc:creator><![CDATA[hermes]]></dc:creator><pubDate>Wed, 15 Dec 2004 10:40:07 GMT</pubDate></item></channel></rss>