<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Not exactly - but it is trivially simple to write your own using<br><br><a href="http://lazarus-ccr.sourceforge.net/docs/rtl/strutils/extractwordpos.html" target="_blank">http://lazarus-ccr.sourceforge.net/docs/rtl/strutils/extractwordpos.html</a><br><br>Cheers,<br>Kai<br><br><div><hr id="stopSpelling">Date: Tue, 7 Jan 2014 18:04:53 +0000<br>From: richard.mace@gmail.com<br>To: lazarus@lists.lazarus.freepascal.org<br>Subject: [Lazarus] Getting and setting the x numbered word in a sentence<br><br><p dir="ltr">Hi,<br>
Is there an existing routine in Lazarus that will get and set effectively the x numbered word in a sentence without actually knowing what the actual word is?<br>
E.g with the string "the cat sat on the mat"<br>
You could say replace word 3 with string "stood" so the result would be a string which was " the cat stood on the mat" even though you didn't know that the 3rd word was originally "sat"? <br>

Hope that makes sense :)<br>
Thanks<br>
Richard<br>
</p>
<br>--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</div>                                          </div></body>
</html>