🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8426

Re: finding Special Characters in a string how to

#8426
From: Oren Halvani
Date: Sun, 31 Oct 2004 20:29
24 lines
1548 bytes
"Les" <None> schrieb im Newsbeitrag
news:41854913$1@newsgroups.borland.com...

> using the string functions pos substring etc with strings how would I
> find special characters in a string.
> IE. 'some text here ' (then a TAB char.) or (a C/R).
> could someone show me how these characters show up. thanks

Hi Les,

horizontal tab = \t
vertical tab = \v
CRLF = \r\n

lil' sample...replace CRLF with a space in a TRichEdit:

        RichEdit1->Text = StringReplace(RichEdit1->Text, "\r\n", " ",
TReplaceFlags() << rfReplaceAll);

if you need more samples, just let me know ;-)



Oren
Technical Details
Message-ID: <41854b56$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41854913$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,cd3cccc0234902cd
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Oren Halvani" <NoSpam@fdtd.com>
From: "Oren Halvani" <NoSpam@fdtd.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <41854913$1@newsgroups.borland.com>
Subject: Re: finding Special Characters in a string how to
Date: Sun, 31 Oct 2004 21:29:29 +0100
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 217.86.59.10
Message-ID: <41854b56$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1099254614 217.86.59.10 (31 Oct 2004 12:30:14 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail