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
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
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
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