On 25/03/2008, el stamatakos <[EMAIL PROTECTED]> wrote: > > Hi, > I have a function that has worked quite well in Windows. Now I try to use > it on Linux and it does not appear to be going into subdirectories where the > files are actually stored. The unit is below. I use the following > > FindFile1.Filemask:='*.cfg';
Also remember that Linux is case-sensitive, so if you have files ending in .CFG or .Cfg etc, it will not be found with the '*.cfg' mask. To make Find Files case-insensitive, you need to find all files, convert the resulting filename to lowercase and do a file extension comparison with 'cfg'. If you find a match, then add it to some FileList class which you can return to the calling procedure. For code on how to do this, have a look in the fpGUI Toolkit source code available on SourceForge. The TfpgFileGrid class in src/gui/gui_grid.pas unit. Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
