On Thu, 8 Dec 2005 19:07:01 +0100 (CET) Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
> > > On Thu, 8 Dec 2005, ArĂ Ricardo Ody wrote: > > > At 14:53 8/12/2005, you wrote: > > > > > (deleted text) > > > > > > > > > Also, change your FIndFirst call so it actually uses the directory > > > name: > > > > > > FileHandle := FindFirst (Dirname+'*.*',faAnyFile,Dir); > > > > FileHandle := FindFirst (Dirname+'\*.*',faAnyFile,Dir); > > In my testcode, DirName was initialized with /tmp/, customary on Linux :-) Let's do it platform independent: uses FileUtil; FileHandle := FindFirst (AppendPathDelim(Dirname)+GetAllFilesMask,faAnyFile,Dir); Mattias _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives