<?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[Text suchen und ersetzen]]></title><description><![CDATA[<p>Hallo</p>
<p>ich habe da mal ne frage wie kann ich in einem RichEdit text suchen und ersetzen habe leider nirgendswo etwas dazu finden können.</p>
<p>THX</p>
<p>Mfg Happymax</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/124673/text-suchen-und-ersetzen</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Jul 2026 23:17:05 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/124673.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 30 Oct 2005 10:53:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Text suchen und ersetzen on Sun, 30 Oct 2005 10:53:27 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>ich habe da mal ne frage wie kann ich in einem RichEdit text suchen und ersetzen habe leider nirgendswo etwas dazu finden können.</p>
<p>THX</p>
<p>Mfg Happymax</p>
]]></description><link>https://www.c-plusplus.net/forum/post/903746</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/903746</guid><dc:creator><![CDATA[..::G-Man::..]]></dc:creator><pubDate>Sun, 30 Oct 2005 10:53:27 GMT</pubDate></item><item><title><![CDATA[Reply to Text suchen und ersetzen on Sun, 30 Oct 2005 11:21:57 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>siehe <em>TRichEdit::FindText()</em> in der BCB-Hilfe</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/903774</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/903774</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sun, 30 Oct 2005 11:21:57 GMT</pubDate></item><item><title><![CDATA[Reply to Text suchen und ersetzen on Sun, 30 Oct 2005 11:32:45 GMT]]></title><description><![CDATA[<p>Ich habe es schon gefunden aber trozdem danke</p>
<p>fals es jemanden interesiert ich habe es so gemacht:</p>
<pre><code>void __fastcall Replace( const AnsiString TextA, const AnsiString TextB)
{
// Suche nach TextA durchführen
  int SelPos = Form1-&gt;RichEdit1-&gt;Lines-&gt;Text.Pos(TextA);
  if (SelPos &gt; 0)
  {
    Form1-&gt;RichEdit1-&gt;SelStart = SelPos - 1;
    Form1-&gt;RichEdit1-&gt;SelLength = TextA.Length();
// Ausgewählten Text durch TextB ersetzen
    Form1-&gt;RichEdit1-&gt;SelText = TextB;
  }
}

void __fastcall TForm1::Button1Click(TObject *Sender)
{
Replace(&quot;Hier den zu ersetzenden Text rein&quot;,&quot;Hier wodurch er ersetzt werden soll&quot;);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/903788</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/903788</guid><dc:creator><![CDATA[..::G-Man::..]]></dc:creator><pubDate>Sun, 30 Oct 2005 11:32:45 GMT</pubDate></item></channel></rss>