[Lazarus] How to determine the file extension to use

Graeme Geldenhuys graemeg.lists at gmail.com
Sun Oct 25 00:01:47 CEST 2009


2009/10/24 waldo kitty <wkitty42 at windstream.net>:
> on the windows platform, a call like FileIsExecutable("foo.txt") would
> return true if "foo.txt" exists in the current directory... but this is
> incorrect because a .txt file is not executable :?


This was exactly my thought, after reading the online help. Just
because the file exists, doesn't make it an executable. I did not look
at the implementation though, so I cannot say if the documentation is
outdated, or the implementation is lacking some serious "meat".


-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/




More information about the Lazarus mailing list