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.

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to