🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: AnsiString and the LineFeed char

#6338
From: Remy Lebeau (TeamB)
Date: Tue, 17 May 2005 16:22
18 lines
1502 bytes
"Robert G. Hoover" <not.a.real.address@anywhere.sorry> wrote in message
news:428a086f$1@newsgroups.borland.com...

> If I'm using a TMemo, then the '\n' is not interpreted as a EOL
> char, but rather it is displayed as \n.

That is not correct. "\n" is indeed treated as EOL.

> For example, I'd like to send an AnsiString like the following....
>
> AnsiString TextString = "1. Go to start.\n2. Walk north, 3 steps.\n3.
> Walk east, 5 steps.\n4. Dig up treasure.";

That works just fine.  The \n characters are indeed treated as EOL.


Gambit
Technical Details
Message-ID: <428a1a01@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42826ce0@newsgroups.borland.com> <428279f7$1@newsgroups.borland.com> <428a086f$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>
Subject: Re: AnsiString and the LineFeed char
Date: Tue, 17 May 2005 09:22:28 -0700
Lines: 20
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: <428a1a01@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1116346881 68.69.17.41 (17 May 2005 09:21:21 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail