[Lazarus] Removing a character from string

Richard Mace richard at shrinkyourbills.co.uk
Mon Nov 12 17:21:37 CET 2012


Michael,
Thanks.
What would be the best way of finding the position of char in a string
(Windows only)

Thanks

Richard


*Richard Mace*



*Are you interested in an additional income working part time and without
affecting what you already do?* Then watch this
3minutevideo.co.uk<http://www.3minutevideo.co.uk>



On 12 November 2012 16:19, <michael.vancanneyt at wisa.be> wrote:

>
>
> 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 at lists.lazarus.**freepascal.org<Lazarus at lists.lazarus.freepascal.org>
> http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarus<http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20121112/fb335e83/attachment-0003.html>


More information about the Lazarus mailing list