[Lazarus] Does anyone have any idea why Lazarus won't compile on Redhat Fedora 8?

Andrew Brunner atbrunner at aurawin.com
Tue Mar 25 13:19:20 CET 2008

On 25/03/2008, el stamatakos <el_stamatakos at hotmail.com> 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.

  - Graeme -

fpGUI - a cross-platform Free Pascal GUI toolkit

More information about the Lazarus mailing list