🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Strange bug...reversing a stringlist and than inserting a linenumber (endless loop)

#11511
From: Hans Galema
Date: Fri, 06 Feb 2004 13:16
28 lines
1886 bytes
(Oren) wrote:

> can someone help me with optimizing the below code...?
> when I first reverse the content of Memo via this:
> 
> /***************************************************************/
> void __fastcall TfrmStringDetails::cmdText_ReverseClick(TObject *Sender)
> {
>    AnsiString temp = Memo1->Text;
>    strrev(temp.c_str());
>    Application->ProcessMessages();
>    Memo1->Text = temp;
> }
> /***************************************************************/
> 

Did you have a look at the contents of TMeno1 now ?
It does not have the same amount of lines as before.
You did not tell what you considered "reverse the content",
so please tell what you have/had in mind.

> and than insert a line number for each line with this:

You have very different lines now.

Why not in the vcl.components.using ?

Hans.
Technical Details
Message-ID: <40239261@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40238620$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,93c18e6afff6855b
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-06 05:40:11 PST
Date: Fri, 06 Feb 2004 14:16:05 +0100
From: Hans Galema <dontusethis@dontusethis.nl>
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.6b) Gecko/20031208
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Strange bug...reversing a stringlist and than inserting a linenumber
 (endless loop)
References: <40238620$1@newsgroups.borland.com>
In-Reply-To: <40238620$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 129.125.108.11
Message-ID: <40239261@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1076073057 129.125.108.11 (6 Feb 2004 05:10:57 -0800)
Lines: 28
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail