[Lazarus] Removing a character from string

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Mon Nov 12 17:19:16 CET 2012



On Mon, 12 Nov 2012, Richard Mace wrote:

> Hi all,
> I was sure there was a function to do this, but I can't seem to find it.
> How would I remove a character from a string?

if P is the position:

Delete(S,p,1);

Note that if S is an UTF-8 string, and at p there is a unicode control code, 
this will give unexpected results...

Michael.




More information about the Lazarus mailing list