Recent

Author Topic: TApplication in Kol-ce  (Read 4067 times)

BlueIcaro

  • Hero Member
  • *****
  • Posts: 576
TApplication in Kol-ce
« 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
Remenber, the lazarus wiki is your friend: http://wiki.lazarus.freepascal.org/Main_Page
General questions (several lenguages) http://wiki.lazarus.freepascal.org/

JoniDS

  • New Member
  • *
  • Posts: 11
Re: TApplication in Kol-ce
« Reply #1 on: April 30, 2009, 02:26:37 am »
You can can do it this way:
dir := extractfilepath(Paramstr(0));

BlueIcaro

  • Hero Member
  • *****
  • Posts: 576
Re: TApplication in Kol-ce
« Reply #2 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
Remenber, the lazarus wiki is your friend: http://wiki.lazarus.freepascal.org/Main_Page
General questions (several lenguages) http://wiki.lazarus.freepascal.org/