<?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[ListView und Clear]]></title><description><![CDATA[<p>Hallo Leute</p>
<p>Ich habe ein Problem mit ListView und Clear.</p>
<pre><code class="language-cpp">void __fastcall TForm1::E19Change(TObject *Sender)
{
    W19 = StrToFloat(E19-&gt;Text);
    Z19 = W19*10*65536;
    D19 = Z19;
    H19 = IntToHex(D19,1);
    TerminalTime-&gt;Enabled = true;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::TerminalTimeTimer(TObject *Sender)
{
        TerminalTime-&gt;Enabled = false;
        TListItem  *ListItem;
        ListItem = Controll-&gt;Items-&gt;Add();
        ListItem-&gt;Caption = &quot;19&quot;;
        ListItem-&gt;SubItems-&gt;Add(D19);
        ListItem-&gt;SubItems-&gt;Add(H19);

}
</code></pre>
<p>Ich will die werte beim eingeben im Editfeld gleich Einschreiben ins LiestView,<br />
dass passiert auch aber er schreibt mir alles untereinander. Wenn ich mit der Eingabe fertig bin möchte ich aber nur den aktuellen letzten Wert haben.</p>
<p>Bei Memofeld funktioniert es wenn ich es mit Clear vorher den alten wert lösche und neu Eintrage aber warum bei ListView nicht .</p>
<p>wäre für jede Hilfe Dankbar</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/103465/listview-und-clear</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 06:33:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/103465.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 Mar 2005 19:41:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ListView und Clear on Tue, 08 Mar 2005 19:41:43 GMT]]></title><description><![CDATA[<p>Hallo Leute</p>
<p>Ich habe ein Problem mit ListView und Clear.</p>
<pre><code class="language-cpp">void __fastcall TForm1::E19Change(TObject *Sender)
{
    W19 = StrToFloat(E19-&gt;Text);
    Z19 = W19*10*65536;
    D19 = Z19;
    H19 = IntToHex(D19,1);
    TerminalTime-&gt;Enabled = true;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::TerminalTimeTimer(TObject *Sender)
{
        TerminalTime-&gt;Enabled = false;
        TListItem  *ListItem;
        ListItem = Controll-&gt;Items-&gt;Add();
        ListItem-&gt;Caption = &quot;19&quot;;
        ListItem-&gt;SubItems-&gt;Add(D19);
        ListItem-&gt;SubItems-&gt;Add(H19);

}
</code></pre>
<p>Ich will die werte beim eingeben im Editfeld gleich Einschreiben ins LiestView,<br />
dass passiert auch aber er schreibt mir alles untereinander. Wenn ich mit der Eingabe fertig bin möchte ich aber nur den aktuellen letzten Wert haben.</p>
<p>Bei Memofeld funktioniert es wenn ich es mit Clear vorher den alten wert lösche und neu Eintrage aber warum bei ListView nicht .</p>
<p>wäre für jede Hilfe Dankbar</p>
]]></description><link>https://www.c-plusplus.net/forum/post/740878</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/740878</guid><dc:creator><![CDATA[Gast_Newbie]]></dc:creator><pubDate>Tue, 08 Mar 2005 19:41:43 GMT</pubDate></item><item><title><![CDATA[Reply to ListView und Clear on Tue, 08 Mar 2005 19:58:25 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Das hier :</p>
<pre><code class="language-cpp">TListItem  *ListItem;
ListItem = Controll-&gt;Items-&gt;Add();
</code></pre>
<p>fügt nunmal eine neue Zeile hinzu...</p>
<p>Wenn Du den markierten Eintrag (im ListView) editieren willst, mußt Du das so machen :</p>
<pre><code class="language-cpp">TListItem  *ListItem;
if (Controll-&gt;Selected)
{
  ListItem = Controll-&gt;Selected;
  ListItem-&gt;Caption = &quot;19&quot;;
  if (ListItem-&gt;SubItems-&gt;Count &gt; 1)
  {
    ListItem-&gt;SubItems-&gt;Strings[0] = D19;
    ListItem-&gt;SubItems-&gt;Strings[1] = H19;
  }  // if (ListItem-&gt;SubItems-&gt;Count &gt; 1)
}  // if (ListView1-&gt;Selected)
</code></pre>
<pre><code class="language-cpp">Controll-&gt;Items-&gt;Clear();
</code></pre>
<p>Löscht den gesamten Inhalt des ListViews.</p>
<p>Bis dann denn,<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /><br />
Nash</p>
]]></description><link>https://www.c-plusplus.net/forum/post/740889</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/740889</guid><dc:creator><![CDATA[Nash]]></dc:creator><pubDate>Tue, 08 Mar 2005 19:58:25 GMT</pubDate></item><item><title><![CDATA[Reply to ListView und Clear on Tue, 08 Mar 2005 21:27:38 GMT]]></title><description><![CDATA[<p>Hallo Nash</p>
<p>sorry hatte es probiert bekomme aber nichts angezeigt wenn ich was ins edit feld eintrage und er es gleich ins listview eintragen soll. <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="😞"
    /><br />
listview bleibt leider leer</p>
]]></description><link>https://www.c-plusplus.net/forum/post/740970</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/740970</guid><dc:creator><![CDATA[Gast_Newbie]]></dc:creator><pubDate>Tue, 08 Mar 2005 21:27:38 GMT</pubDate></item><item><title><![CDATA[Reply to ListView und Clear on Tue, 08 Mar 2005 21:28:15 GMT]]></title><description><![CDATA[<p>Hallo Nash</p>
<p>sorry hatte es probiert bekomme aber nichts angezeigt wenn ich was ins edit feld eintrage und er es gleich ins listview eintragen soll. <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="😞"
    /><br />
listview bleibt leider leer</p>
]]></description><link>https://www.c-plusplus.net/forum/post/740972</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/740972</guid><dc:creator><![CDATA[Gast_Newbie]]></dc:creator><pubDate>Tue, 08 Mar 2005 21:28:15 GMT</pubDate></item><item><title><![CDATA[Reply to ListView und Clear on Tue, 08 Mar 2005 21:51:20 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Wie gesagt, wenn ein Eintrag markiert ist (im ListView).<br />
Ansonsten probier's mal so :</p>
<pre><code class="language-cpp">TListItem  *ListItem;
if (Controll-&gt;Selected)
{
  ListItem = Controll-&gt;Selected;
  ListItem-&gt;Caption = &quot;19&quot;;
  if (ListItem-&gt;SubItems-&gt;Count &gt; 1)
  {
    ListItem-&gt;SubItems-&gt;Strings[0] = D19;
    ListItem-&gt;SubItems-&gt;Strings[1] = H19;
  }  // if (ListItem-&gt;SubItems-&gt;Count &gt; 1)
}  // if (ListView1-&gt;Selected)
else
{
  ListItem = Controll-&gt;Items-&gt;Add();
  ListItem-&gt;Caption = &quot;19&quot;;
  ListItem-&gt;SubItems-&gt;Add(D19);
  ListItem-&gt;SubItems-&gt;Add(H19);
}  // else
</code></pre>
<p>Bis dann denn,<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /><br />
Nash</p>
]]></description><link>https://www.c-plusplus.net/forum/post/740986</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/740986</guid><dc:creator><![CDATA[Nash]]></dc:creator><pubDate>Tue, 08 Mar 2005 21:51:20 GMT</pubDate></item><item><title><![CDATA[Reply to ListView und Clear on Tue, 08 Mar 2005 22:03:00 GMT]]></title><description><![CDATA[<p>Jo Danke Nash</p>
<p>für die schnelle Hilfe jetzt funktioniert es <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>
]]></description><link>https://www.c-plusplus.net/forum/post/740993</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/740993</guid><dc:creator><![CDATA[Gast_Newbie]]></dc:creator><pubDate>Tue, 08 Mar 2005 22:03:00 GMT</pubDate></item></channel></rss>