Lazarus

Programming => Packages and Libraries => KOL => Topic started by: BlueIcaro on April 29, 2009, 05:37:49 pm

Title: TApplication in Kol-ce
Post 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:
Quote
dir := ExtractFilePath (Application.Params[0])
But when I compile I got a error in this line:
Quote
umain.pas(59,38) Error: Identifier not found "Application"
How can I make this with kol-ce?

Thanks
/BlueIcaro
Title: Re: TApplication in Kol-ce
Post by: JoniDS on April 30, 2009, 02:26:37 am
You can can do it this way:
dir := extractfilepath(Paramstr(0));
Title: Re: TApplication in Kol-ce
Post by: BlueIcaro on April 30, 2009, 09:46:22 am
You can can do it this way:
dir := extractfilepath(Paramstr(0));
Thank you, it's works

/BlueIcaro
TinyPortal © 2005-2018