Talk:Command line parameters and environment variables

From Lazarus wiki
Revision as of 00:39, 18 June 2020 by Kai Burghardt (talk | contribs) (reply)
Jump to navigationJump to search

paramStr(0)

@Kai: paramstr(0) isn't guaranteed to return the name of the program on all platforms. IIRC then only DOS/Windows (maybe OS2) guarantees it. --Bart (talk) 22:29, 17 June 2020 (CEST)

It isn’t? I tried to read the RTL’s documentation as carefully as possible. I couldn’t and can’t infer any other constraints than what I’ve already mentioned. I’ve scoured the forum now too, but I couldn’t find statements definitely corroborating your claim: It is available on all platforms, but not if the executable resides on a remote FS. There is definitely a warning though. I’ve added a note. Kai Burghardt (talk) 00:39, 18 June 2020 (CEST)