Lazarus
Programming => Packages and Libraries => KOL => Topic started by: BlueIcaro on April 29, 2009, 05:37:49 pm
-
Hello, I making a program in kol-ce, but I have a error. I want to read in which directory is running my program, soy I worte:
dir := ExtractFilePath (Application.Params[0])
But when I compile I got a error in this line:
umain.pas(59,38) Error: Identifier not found "Application"
How can I make this with kol-ce?
Thanks
/BlueIcaro
-
You can can do it this way:
dir := extractfilepath(Paramstr(0));
-
You can can do it this way:
dir := extractfilepath(Paramstr(0));
Thank you, it's works
/BlueIcaro