Article View: borland.public.delphi.language.objectpascal
Article #32523Re: Chop strings with carriage returns
From: Chris
Date: Fri, 22 Nov 2002 08:47
Date: Fri, 22 Nov 2002 08:47
29 lines
1528 bytes
1528 bytes
Ok, thanks to all. Without quotes it works!
"Rudy Velthuis (TeamB)" <rvelthuis@gmx.de> wrote:
>In article <3ddcfd01$2@newsgroups.borland.com>, Chris says...
>
>> I tried to chop s with functions like AnsiPos and the substring
>> '#$D#$A' or '#13#10' but none of them works.
>
>Use
>
> AnsiPos(#13#10, S);
>
>or
>
> AnsiPos(#$D#$A, S);
>
>and not:
>
> AnsiPos('#13#10', TheString);
>
>or
>
> AnsiPos('#$D#$A', S);
>--
>Rudy Velthuis (TeamB)
>
>"We should leave our minds open, but not so open that our brains
> fall out." - Alan Ross Anderson
Technical Details
Message-ID:
<3dddef3b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.gamma.ru!Gamma.RU!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mailReferences:
<3ddcfd01$2@newsgroups.borland.com> <3ddd35ff@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109d30,6a98116bcd6177e7,start X-Google-Attributes: gid109d30,public X-Google-ArrivalTime: 2002-11-22 01:16:43 PST From: "Chris" <christian.graf@synnotech.de> Sender: "Chris" <christian.graf@synnotech.de> Reply-To: "Chris" <christian.graf@synnotech.de> Subject: Re: Chop strings with carriage returns Newsgroups: borland.public.delphi.language.objectpascal X-User-Info: 217.235.68.19 217.235.68.19 References: <3ddcfd01$2@newsgroups.borland.com> <3ddd35ff@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3dddef3b$1@newsgroups.borland.com> Date: 22 Nov 2002 00:47:55 -0800 X-Trace: newsgroups.borland.com 1037954875 207.105.83.65 (22 Nov 2002 00:47:55 -0800) Lines: 30 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.gamma.ru!Gamma.RU!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail