<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Delphi Tutorial &#187; Strings</title>
	<atom:link href="http://delphitutorial.info/category/delphi-tutorial/strings/feed" rel="self" type="application/rss+xml" />
	<link>http://delphitutorial.info</link>
	<description></description>
	<lastBuildDate>Sun, 19 Jul 2009 10:48:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Split String 1</title>
		<link>http://delphitutorial.info/split-string-1.html</link>
		<comments>http://delphitutorial.info/split-string-1.html#comments</comments>
		<pubDate>Thu, 15 Feb 2007 06:26:53 +0000</pubDate>
		<dc:creator>Delphi Tutorial</dc:creator>
				<category><![CDATA[Strings]]></category>

		<guid isPermaLink="false">http://delphitutorial.info/split-string-1.html</guid>
		<description><![CDATA[If you want to split string from TStringList you can use this little code. procedure Split(const str1:string; const sep:string; LT:TStringList); var i:Integer; {Holds the Real Pos} t:AnsiString; {Holds the String} i2:integer; {Holds the second pos} begin i:=1; t:=str1; repeat t:=AnsiRightStr(t,Length(t)-i-Length(sep)+1);{Gets &#8230; <a href="http://delphitutorial.info/split-string-1.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you want to <strong>split string</strong> from TStringList you can use this little code.<br />
<span id="more-28"></span></p>
<p><font size="2" face="Courier New, Courier, mono"><strong>procedure </strong>Split(<strong>const </strong>str1:string; <strong>const </strong>sep:string; LT:TStringList);<br />
<strong>var</strong><br />
i:Integer; {Holds the Real Pos}<br />
t:AnsiString; {Holds the String}<br />
i2:integer; {Holds the second pos}<br />
<strong>begin</strong><br />
i:=1;<br />
t:=str1;<br />
<strong>repeat</strong><br />
t:=AnsiRightStr(t,Length(t)-i-Length(sep)+1);{Gets the right of the the string at the pos of the separator}<br />
i:=AnsiPos (sep,t);{Gets the pos(Holds it)}<br />
i2:=AnsiPos(sep,t); {The real pos(USes it)}<br />
if AnsiLeftStr(t,i2-1)= &#8221; then {Checks if the string is empty}<br />
<strong>begin</strong>{Do nothing if is}<br />
<strong>end</strong><br />
<strong>else</strong><br />
<strong>begin</strong><br />
LT.Add(AnsiLeftStr(t,i2-1)); {Adds to the TStringList}<br />
<strong>end</strong>;<br />
<strong>until </strong>i=0;{^Does above until the no more seperators}<br />
<strong>end</strong>;</p>
<p></font></p>
<h4>Incoming search terms:</h4><ul><li>delphi split string</li><li>delphi split</li><li>split delphi</li><li>split delphi uses</li><li>delphi splitstring</li><li>split string delphi</li><li>splitstring delphi</li><li>split in delphi</li><li>split string delphi without stringlist</li><li>string parse example delphi</li></ul>]]></content:encoded>
			<wfw:commentRss>http://delphitutorial.info/split-string-1.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replace Text</title>
		<link>http://delphitutorial.info/replace-text.html</link>
		<comments>http://delphitutorial.info/replace-text.html#comments</comments>
		<pubDate>Thu, 01 Feb 2007 06:54:09 +0000</pubDate>
		<dc:creator>Delphi Tutorial</dc:creator>
				<category><![CDATA[Strings]]></category>

		<guid isPermaLink="false">http://delphitutorial.info/replace-text.html</guid>
		<description><![CDATA[A text replace function for strings. function ReplaceText(const S,ReplacePiece,ReplaceWith: String):String; Var Position: Integer; TempStr: String; begin Position := Pos(ReplacePiece,S); if Position > 0 then Begin TempStr := S; Delete(TempStr,1,Position-1+Length(ReplacePiece)); Result := Copy(S,1,Position-1)+ReplaceWith+ReplaceText(TempStr,ReplacePiece,ReplaceWith) End else Result := S; end; Incoming search &#8230; <a href="http://delphitutorial.info/replace-text.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A text replace function for strings.</p>
<p><span id="more-41"></span></p>
<p><font size="2" face="Courier New, Courier, mono"><strong>function </strong>ReplaceText(const S,ReplacePiece,ReplaceWith: String):String;<br />
<strong>Var </strong><br />
Position: Integer;<br />
TempStr: String;<br />
<strong>begin</strong><br />
Position := Pos(ReplacePiece,S);<br />
if Position > 0 then Begin<br />
TempStr := S;<br />
Delete(TempStr,1,Position-1+Length(ReplacePiece));<br />
Result :=<br />
Copy(S,1,Position-1)+ReplaceWith+ReplaceText(TempStr,ReplacePiece,ReplaceWith)</p>
<p>End else Result := S;<br />
<strong>end</strong>;<br />
</font></p>
<h4>Incoming search terms:</h4><ul><li>delphi replace</li><li>replacetext delphi</li><li>delphi replace text</li><li>delphi replacetext</li><li>delphi text replace</li><li>delphi string replace</li><li>replace txt delphi</li><li>replace word delphi</li><li>replacetext delphi sample</li><li>replasetext delphi</li></ul>]]></content:encoded>
			<wfw:commentRss>http://delphitutorial.info/replace-text.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.453 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-05-17 19:13:51 -->

