<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=TStringList.Exchange</id>
		<title>TStringList.Exchange - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=TStringList.Exchange"/>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=TStringList.Exchange&amp;action=history"/>
		<updated>2026-05-26T01:27:46Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.soldat.pl/index.php?title=TStringList.Exchange&amp;diff=1155&amp;oldid=prev</id>
		<title>Mighty: new page</title>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=TStringList.Exchange&amp;diff=1155&amp;oldid=prev"/>
				<updated>2013-08-24T10:42:07Z</updated>
		
		<summary type="html">&lt;p&gt;new page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; '''procedure Exchange(Index1, Index2: Integer)'''&lt;br /&gt;
  Index1: Index no. 1&lt;br /&gt;
  Index2: Index no. 2&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
[[TStringList.Exchange|Exchange]] will exchange two items in the list.&amp;lt;br&amp;gt;&lt;br /&gt;
It does '''not''' check whether the list is sorted or not; if [[TStringList.Exchange|Exchange]] is called on a sorted list and the strings are not identical, the sort order of the list will be destroyed.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
var&lt;br /&gt;
  s: TStringList;&lt;br /&gt;
&lt;br /&gt;
begin&lt;br /&gt;
  s := File.CreateStringList();&lt;br /&gt;
  s.Append('a');&lt;br /&gt;
  s.Append('b');&lt;br /&gt;
  s.Append('c');&lt;br /&gt;
  &lt;br /&gt;
  s.Exchange(0,2);&lt;br /&gt;
  &lt;br /&gt;
  WriteLn(s.CommaText);&lt;br /&gt;
  // c,b,a&lt;br /&gt;
  &lt;br /&gt;
  s.Free;&lt;br /&gt;
end.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:TStringList]]&lt;/div&gt;</summary>
		<author><name>Mighty</name></author>	</entry>

	</feed>