<?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[SubString will nicht]]></title><description><![CDATA[<pre><code>lblFrage-&gt;Caption=empfang.SubString(1,empfang.Pos(&quot;|&quot;)-1);

//GIBT AUS: Wie ist nochmal die Frage?

 lblAA-&gt;Caption=empfang.SubString(empfang.Pos(&quot;|&quot;)+1,empfang.Pos(&quot;/&quot;));

//GIBT AUS: Kaese/Kuchen-mit+Sahne

 lblBB-&gt;Caption=empfang.SubString(empfang.Pos(&quot;/&quot;)+1,empfang.Pos(&quot;-&quot;));

//GIBT AUS: Kuchen-mit+Sahne

 lblCC-&gt;Caption=empfang.SubString(empfang.Pos(&quot;-&quot;)+1,empfang.Pos(&quot;+&quot;));

//GIBT AUS: mit+Sahne

 lblDD-&gt;Caption=empfang.SubString(empfang.Pos(&quot;+&quot;)+1,empfang.Length());

//GIBT AUS: Sahne
</code></pre>
<p>in empfang steht : Wie ist nochmal die Frage?|Kaese$Kuchen-mit+Sahne</p>
<p>lblAA sollte &quot;Kaese&quot; sein<br />
lblBB sollte &quot;Kuchen&quot; sein<br />
lblCC sollte &quot;mit&quot; sein<br />
lblDD sollte &quot;Sahne&quot; sein</p>
<p>Wieso geht das nicht ? Hab auch schon versucht den 2ten Parameter per Int Variable zu übergeben geht aber auch nicht. Wird irgendwie absolut nicht beachtet.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/181917/substring-will-nicht</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 20:48:41 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/181917.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 18 May 2007 18:56:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SubString will nicht on Fri, 18 May 2007 18:58:54 GMT]]></title><description><![CDATA[<pre><code>lblFrage-&gt;Caption=empfang.SubString(1,empfang.Pos(&quot;|&quot;)-1);

//GIBT AUS: Wie ist nochmal die Frage?

 lblAA-&gt;Caption=empfang.SubString(empfang.Pos(&quot;|&quot;)+1,empfang.Pos(&quot;/&quot;));

//GIBT AUS: Kaese/Kuchen-mit+Sahne

 lblBB-&gt;Caption=empfang.SubString(empfang.Pos(&quot;/&quot;)+1,empfang.Pos(&quot;-&quot;));

//GIBT AUS: Kuchen-mit+Sahne

 lblCC-&gt;Caption=empfang.SubString(empfang.Pos(&quot;-&quot;)+1,empfang.Pos(&quot;+&quot;));

//GIBT AUS: mit+Sahne

 lblDD-&gt;Caption=empfang.SubString(empfang.Pos(&quot;+&quot;)+1,empfang.Length());

//GIBT AUS: Sahne
</code></pre>
<p>in empfang steht : Wie ist nochmal die Frage?|Kaese$Kuchen-mit+Sahne</p>
<p>lblAA sollte &quot;Kaese&quot; sein<br />
lblBB sollte &quot;Kuchen&quot; sein<br />
lblCC sollte &quot;mit&quot; sein<br />
lblDD sollte &quot;Sahne&quot; sein</p>
<p>Wieso geht das nicht ? Hab auch schon versucht den 2ten Parameter per Int Variable zu übergeben geht aber auch nicht. Wird irgendwie absolut nicht beachtet.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1287618</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1287618</guid><dc:creator><![CDATA[X3r0X]]></dc:creator><pubDate>Fri, 18 May 2007 18:58:54 GMT</pubDate></item><item><title><![CDATA[Reply to SubString will nicht on Fri, 18 May 2007 19:16:41 GMT]]></title><description><![CDATA[<p>Was heißt &quot;geht nicht&quot;? Und welchen Typ hat <em>empfang</em>?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1287626</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1287626</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Fri, 18 May 2007 19:16:41 GMT</pubDate></item><item><title><![CDATA[Reply to SubString will nicht on Fri, 18 May 2007 19:20:11 GMT]]></title><description><![CDATA[<p>empfang ist AnsiString.</p>
<p>Und was nicht geht siehste doch hab doch dazu geschreiben was ausgegeben wird und was er ausgeben soll.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1287627</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1287627</guid><dc:creator><![CDATA[X3r0X]]></dc:creator><pubDate>Fri, 18 May 2007 19:20:11 GMT</pubDate></item><item><title><![CDATA[Reply to SubString will nicht on Fri, 18 May 2007 19:29:06 GMT]]></title><description><![CDATA[<p>X3r0X schrieb:</p>
<blockquote>
<pre><code class="language-cpp">lblAA-&gt;Caption=empfang.SubString(empfang.Pos(&quot;|&quot;)+1,empfang.Pos(&quot;/&quot;));
</code></pre>
<p>[...]<br />
in empfang steht : Wie ist nochmal die Frage?|Kaese$Kuchen-mit+Sahne<br />
[...]</p>
</blockquote>
<p>Warum suchst du nach einem Slash, wenn in dem ganzen String kein Slash vorkommt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1287631</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1287631</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Fri, 18 May 2007 19:29:06 GMT</pubDate></item><item><title><![CDATA[Reply to SubString will nicht on Fri, 18 May 2007 19:31:07 GMT]]></title><description><![CDATA[<p>Das war der alte Code...da hatte ich das Zeichen mal ersetzt weil ich dachte dran liegts.</p>
<pre><code>lblFrage-&gt;Caption=empfang.SubString(1,empfang.Pos(&quot;|&quot;)-1);
 lblAA-&gt;Caption=empfang.SubString(empfang.Pos(&quot;|&quot;)+1,empfang.Pos(&quot;$&quot;));
 lblBB-&gt;Caption=empfang.SubString(empfang.Pos(&quot;$&quot;)+1,empfang.Pos(&quot;-&quot;));
 lblCC-&gt;Caption=empfang.SubString(empfang.Pos(&quot;-&quot;)+1,empfang.Pos(&quot;+&quot;));
 lblDD-&gt;Caption=empfang.SubString(empfang.Pos(&quot;+&quot;)+1,empfang.Length());
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1287634</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1287634</guid><dc:creator><![CDATA[X3r0X]]></dc:creator><pubDate>Fri, 18 May 2007 19:31:07 GMT</pubDate></item><item><title><![CDATA[Reply to SubString will nicht on Fri, 18 May 2007 19:46:58 GMT]]></title><description><![CDATA[<p>X3r0X schrieb:</p>
<blockquote>
<p>Das war der alte Code...da hatte ich das Zeichen mal ersetzt weil ich dachte dran liegts.</p>
</blockquote>
<p>Jetzt machts schon mehr Sinn. Ich würd mal tippen, dass der 2. Parameter nicht die Endposition, sondern die Länge des zu extrahierenden Strings darstellt. D.h. das müsste so aussehen:</p>
<pre><code class="language-cpp">blAA-&gt;Caption=empfang.SubString(
   empfang.Pos(&quot;|&quot;)+1,empfang.Pos(&quot;$&quot;)-(empfang.Pos(&quot;|&quot;)+1));
</code></pre>
<p>Hab im Moment nicht die Dokumentation vom C++-Builder zur Hand. Kann dir das später definitiv sagen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1287642</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1287642</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Fri, 18 May 2007 19:46:58 GMT</pubDate></item><item><title><![CDATA[Reply to SubString will nicht on Fri, 18 May 2007 19:53:13 GMT]]></title><description><![CDATA[<p>Wunderbar funktioniert danke <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="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1287644</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1287644</guid><dc:creator><![CDATA[X3r0X]]></dc:creator><pubDate>Fri, 18 May 2007 19:53:13 GMT</pubDate></item></channel></rss>