Recent

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

BlueIcaro

  • Hero Member
  • *****
  • Posts: 792
    • Blog personal
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

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: 792
    • Blog personal
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

 

TinyPortal © 2005-2018