I want to avoid to pre-read all files.
In what arrangement does FindNext give files?

  ----- Original Message ----- 
  From: Jangita 
  To: [email protected] 
  Sent: Thursday, May 15, 2008 11:52 AM
  Subject: RE: [delphi-en] file counting


  You might want to try putting the file names retrieved a Tstrings derivative
  with the sorted property set to true; then call the sort method.

  You should end up with a sorted stringlist therefore sorted filenames

  PO Box 627 00502 Karen, 
  Nairobi, Kenya.
  Mobile: +254 722 996532
  Fixed: +254 20 2050859
  [EMAIL PROTECTED] 
  -----Original Message-----
  From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
  Of mauro russo
  Sent: 15 May 2008 12:45 p
  To: [email protected]
  Subject: Re: [delphi-en] file counting

  Dear,

  how to be sure the files are read in alphabetical arrangement?

  Thanks.

  ----- Original Message ----- 
  From: Rob Kennedy 
  To: [email protected] 
  Sent: Monday, May 12, 2008 4:17 PM
  Subject: Re: [delphi-en] file counting

  mauro russo wrote:
  > is it possible to obtain the number of files in a directory (no
  sub-directories)
  > without to enumerate all files, for example as FindFirst and FindNext?

  No. You have to count them.

  A TFileListBox would be overkill. Even if it works non-visually, it 
  still needs to do all the work of enumerating the directory, and then it 
  has the overhead of storing the file information that you apparently 
  don't need.

  When counting the files, make sure you remember to ignore the current 
  and parent directories (. and ..).

  -- 
  Rob

  ----------

  Questa email è stata verificata dal sistema centralizzato antivirus della
  UniPlan Software

  [Non-text portions of this message have been removed]

  ------------------------------------

  -----------------------------------------------------
  Home page: http://groups.yahoo.com/group/delphi-en/
  To unsubscribe: [EMAIL PROTECTED] Groups Links



   
  ----------

Questa email è stata verificata dal sistema centralizzato antivirus della 
UniPlan Software


[Non-text portions of this message have been removed]

Reply via email to