Page 1 of 1

@linepath documentation

Posted: Thu Aug 14, 2025 2:32 am
by paues
The documentation for @linepath says:
If the program d:\myprogs\program1.prg has the line:

string y = @linepath

then y will contain “D:\MYPROGS\PROGRAM1.PRG”, no matter if program1 is run by itself, or as part of another program.
But y will actually contain “D:\MYPROGS\”.

Re: @linepath documentation

Posted: Thu Aug 14, 2025 2:35 am
by paues
The documentation for @runpath makes the same mistake.

As a sidenote, how do I get the paths including the file name in both cases? That is, for both the parent and the child program.