Article View: borland.public.cppbuilder.nativeapi
Article #6349Re: AnsiString and the LineFeed char
From: Remy Lebeau (TeamB)
Date: Tue, 17 May 2005 21:49
Date: Tue, 17 May 2005 21:49
30 lines
2327 bytes
2327 bytes
"Robert G. Hoover" <not.a.real.address@anywhere.sorry> wrote in message
news:428a506b$1@newsgroups.borland.com...
> I tried \r\n as you suggested and I see the \r\n characters in my TMemo.
That is only possible if you put them in the AnsiString that way to begin
with. Assigning the Hint for a component does *not* convert '\r' nd '\n'
characters to "\\r" and "\\n" strings.
> I don't understand why my \n is not being interpreted correctly.
Please show your EXACT code.
> if I use TButton->Hint and set that value in the Object Inspector,
> then I get a \\n or \\r\\n in my AnsiString
As you should be. You cannot type the '\r' and '\n' characters into the
Object Inspector. You have to do it programmably, or alternatively modify
the DFM text directly, ie:
object Button1: TButton
Hint = 'click here'#13#10'to do something'
end
Otherwise, when you type '\r' or '\n' into the Object Inspector, you really
are typing '\\' slash characters, not '\' espace characters.
Gambit
Technical Details
Message-ID:
<428a66aa$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42826ce0@newsgroups.borland.com> <428279f7$1@newsgroups.borland.com> <428a086f$1@newsgroups.borland.com> <428a1a01@newsgroups.borland.com> <428a27e9@newsgroups.borland.com> <428a2e7f$1@newsgroups.borland.com> <428a3c29@newsgroups.borland.com> <428a4de4$3@newsgroups.borland.com> <428a506b$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,617c7c48d8598286 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <42826ce0@newsgroups.borland.com> <428279f7$1@newsgroups.borland.com> <428a086f$1@newsgroups.borland.com> <428a1a01@newsgroups.borland.com> <428a27e9@newsgroups.borland.com> <428a2e7f$1@newsgroups.borland.com> <428a3c29@newsgroups.borland.com> <428a4de4$3@newsgroups.borland.com> <428a506b$1@newsgroups.borland.com> Subject: Re: AnsiString and the LineFeed char Date: Tue, 17 May 2005 14:49:34 -0700 Lines: 32 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <428a66aa$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1116366506 68.69.17.41 (17 May 2005 14:48:26 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail