🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Sorted files list of a folder (FindFirst/FindNext/FindClose)

#16237
From: Hans Galema
Date: Thu, 22 May 2003 11:22
12 lines
1487 bytes
Lapo wrote:

> It works, but the main problem is that if I have a large amount of files, it
> take a long time to terminate.

Did you try to place

   FileList->Sorted=true;

at the start of your function, before adding the filepaths to FileList ?

Hans.
Technical Details
Message-ID: <3eccb2de@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!pln-w!extra.newsguy.com!lotsanews.com!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3eccacda@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,494d25904ac4f10a
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-22 04:36:03 PST
Date: Thu, 22 May 2003 13:22:07 +0200
From: Hans Galema <j.m.galema.dontusethis@maartens.nl>
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.2.1) Gecko/20021130
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Sorted files list of a folder (FindFirst/FindNext/FindClose)
References: <3eccacda@newsgroups.borland.com>
In-Reply-To: <3eccacda@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: <3eccb2de@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1053602526 129.125.108.11 (22 May 2003 04:22:06 -0700)
Lines: 13
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!pln-w!extra.newsguy.com!lotsanews.com!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail