<?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[Ein Problem mit CStringList und dem Datatyp POSITION]]></title><description><![CDATA[<p>Hi Leute,</p>
<p>ich habe eine Stringliste vom Typ CStringList mit 12 Elementen und eine Variable vom Typ POSITION. Jetzt möchte ich den 5 Eintrag löschen. Das geht mit Liste.RemoveAt(pos). Wie kann die Variable pos auf 5 setzen, um den Eintrag zu löschen? pos = 5 löst einen Konvertierungsfehler aus.</p>
<p>Danke für Eure Hilfe im Voraus.</p>
<p>Grüße<br />
xthing</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/170670/ein-problem-mit-cstringlist-und-dem-datatyp-position</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 03:46:55 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/170670.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 18 Jan 2007 12:56:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ein Problem mit CStringList und dem Datatyp POSITION on Thu, 18 Jan 2007 12:56:24 GMT]]></title><description><![CDATA[<p>Hi Leute,</p>
<p>ich habe eine Stringliste vom Typ CStringList mit 12 Elementen und eine Variable vom Typ POSITION. Jetzt möchte ich den 5 Eintrag löschen. Das geht mit Liste.RemoveAt(pos). Wie kann die Variable pos auf 5 setzen, um den Eintrag zu löschen? pos = 5 löst einen Konvertierungsfehler aus.</p>
<p>Danke für Eure Hilfe im Voraus.</p>
<p>Grüße<br />
xthing</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1211998</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1211998</guid><dc:creator><![CDATA[xthing]]></dc:creator><pubDate>Thu, 18 Jan 2007 12:56:24 GMT</pubDate></item><item><title><![CDATA[Reply to Ein Problem mit CStringList und dem Datatyp POSITION on Thu, 18 Jan 2007 13:10:23 GMT]]></title><description><![CDATA[<p>Mit GetHeadPosition bekommst Du die Position des 1. Elementes.<br />
Du musst die Elemente durchlaufen (mit GetNext o.ä.)<br />
Wenn Du beim 5. Element bist, hast Du die korrekte Position und kannst löschen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1212011</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1212011</guid><dc:creator><![CDATA[Airdamn]]></dc:creator><pubDate>Thu, 18 Jan 2007 13:10:23 GMT</pubDate></item><item><title><![CDATA[Reply to Ein Problem mit CStringList und dem Datatyp POSITION on Thu, 18 Jan 2007 22:58:05 GMT]]></title><description><![CDATA[<p>...</p>
<p>POSITION pos5 = Liste.FindIndex( 5 );<br />
Liste.RemoveAt( pos5 );</p>
<p>...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1212376</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1212376</guid><dc:creator><![CDATA[Gio]]></dc:creator><pubDate>Thu, 18 Jan 2007 22:58:05 GMT</pubDate></item><item><title><![CDATA[Reply to Ein Problem mit CStringList und dem Datatyp POSITION on Thu, 18 Jan 2007 23:02:58 GMT]]></title><description><![CDATA[<p>Sorry, vergessen, natürlich vorher auf NULL Ponter checken ...</p>
<p>if( pos5 != NULL )<br />
Liste.RemoveAt( pos5 );</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1212378</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1212378</guid><dc:creator><![CDATA[Gio]]></dc:creator><pubDate>Thu, 18 Jan 2007 23:02:58 GMT</pubDate></item></channel></rss>