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

K. P. platysternon at hotmail.com
Tue Jan 7 19:27:36 CET 2014

Not exactly - but it is trivially simple to write your own using



Date: Tue, 7 Jan 2014 18:04:53 +0000
From: richard.mace at gmail.com
To: lazarus at lists.lazarus.freepascal.org
Subject: [Lazarus] Getting and setting the x numbered word in a sentence


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 cat stood on the mat" even though you didn't know that the 3rd word was originally "sat"? 

Hope that makes sense :)



Lazarus mailing list
Lazarus at lists.lazarus.freepascal.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140107/785b8df3/attachment-0003.html>

More information about the Lazarus mailing list