Recent

Author Topic: Лазарус на MacOS  (Read 11291 times)

ASerge

  • Hero Member
  • *****
  • Posts: 2337
Re: Лазарус на MacOS
« Reply #30 on: June 01, 2020, 03:56:05 pm »
Of course your way is also proper, by the official documentation
https://www.freepascal.org/docs-html/rtl/system/paramstr.html
This means even on Unix, paramstr(0) returns the full path to the program executable
"...is the path and file name with which the program was started". You mean ParamStr(0) + 'f1.txt" = ".../project1.exe.f1.txt" are located in the same folder?

 

TinyPortal © 2005-2018