Recent

Author Topic: search - show actual file  (Read 2642 times)

mesiarm

  • New Member
  • *
  • Posts: 45
search - show actual file
« on: June 27, 2013, 10:00:03 pm »
Do you think there is any way to show actual passed files using FindFirst and FindNext?

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: search - show actual file
« Reply #1 on: June 27, 2013, 10:29:24 pm »
be more specific you make no sense.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

mesiarm

  • New Member
  • *
  • Posts: 45
Re: search - show actual file
« Reply #2 on: July 05, 2013, 09:58:57 pm »
Sorry, I thought actually passed(or searched) directory and I have found it. Using TFileSearcher and its  OnDirectoryFound event.

User137

  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
Re: search - show actual file
« Reply #3 on: July 06, 2013, 01:44:29 am »
By the document
http://lazarus-ccr.sourceforge.net/docs/lcl/fileutil/tfilesearcher.html
http://lazarus-ccr.sourceforge.net/docs/lcl/fileutil/tfileiterator.html
it looks like the event gives you a FileIterator parameter, which contains filename and path.

 

TinyPortal © 2005-2018