<?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=GetPiece</id>
		<title>GetPiece - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=GetPiece"/>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=GetPiece&amp;action=history"/>
		<updated>2026-05-26T00:18:05Z</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=GetPiece&amp;diff=65&amp;oldid=prev</id>
		<title>Freeman: Created page with &quot;===From the Scripting Manual===  ''function GetPiece(source, delimiter: string; const piece: integer): string;''    '''Parameter Info:'''   Source (String): String to be split...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=GetPiece&amp;diff=65&amp;oldid=prev"/>
				<updated>2012-08-15T08:51:52Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;===From the Scripting Manual===  &amp;#039;&amp;#039;function GetPiece(source, delimiter: string; const piece: integer): string;&amp;#039;&amp;#039;    &amp;#039;&amp;#039;&amp;#039;Parameter Info:&amp;#039;&amp;#039;&amp;#039;   Source (String): String to be split...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===From the Scripting Manual===&lt;br /&gt;
 ''function GetPiece(source, delimiter: string; const piece: integer): string;''&lt;br /&gt;
 &lt;br /&gt;
 '''Parameter Info:'''&lt;br /&gt;
  Source (String): String to be split.&lt;br /&gt;
  Delimiter (String): String to be used as a splitting point.&lt;br /&gt;
  Piece (Integer): Index to return from the split array.&lt;br /&gt;
 &lt;br /&gt;
 '''Description:'''&lt;br /&gt;
  This functions uses the regular split function, but returns the specified Index so you do not need to use a seperate variable for the Split array.&lt;br /&gt;
&lt;br /&gt;
==Examples== &lt;br /&gt;
&amp;lt;source lang=&amp;quot;pascal&amp;quot;&amp;gt;var&lt;br /&gt;
MyString: string;&lt;br /&gt;
begin&lt;br /&gt;
    MyString := 'Hello World, I am here to stay!';&lt;br /&gt;
    WriteLn(GetPiece(MyString,' ',0)); //Hello&lt;br /&gt;
    WriteLn(GetPiece(MyString,' ',1)); //World,&lt;br /&gt;
    WriteLn(GetPiece(MyString,' ',5)); //to&lt;br /&gt;
end;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
* [http://enesce.com/help/index.html?Functions/GetPiece.html Scripting Manual page for GetPiece]&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Scripting]][[Category:Server Scripting Functions]]&lt;/div&gt;</summary>
		<author><name>Freeman</name></author>	</entry>

	</feed>