Re: [Lazarus] Getting and setting the x numbered word in a sentence

2014-01-08 Thread John Landmesser
On 07.01.2014 19:04, Richard Mace wrote: Hi, 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? E.g with the string the cat sat on the mat You could say replace word 3 with string stood

[Lazarus] Getting and setting the x numbered word in a sentence

2014-01-07 Thread Richard Mace
Hi, 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? E.g with the string the cat sat on the mat You could say replace word 3 with string stood so the result would be a string which was the

Re: [Lazarus] Getting and setting the x numbered word in a sentence

2014-01-07 Thread K. P.
Not exactly - but it is trivially simple to write your own using http://lazarus-ccr.sourceforge.net/docs/rtl/strutils/extractwordpos.html Cheers, Kai Date: Tue, 7 Jan 2014 18:04:53 + From: richard.m...@gmail.com To: lazarus@lists.lazarus.freepascal.org Subject: [Lazarus] Getting and setting

Re: [Lazarus] Getting and setting the x numbered word in a sentence

2014-01-07 Thread Howard Page-Clark
On 07/01/2014 18:04, Richard Mace wrote: Hi, 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? E.g with the string the cat sat on the mat If word delimiters are consistently all the same