Re: [fpc-devel] Mistake in ApplicationName() documentation
On 13/09/2011 11:02, michael.vancan... wrote: >> >> I have adapted the docs. Thanks. > By the way, the second paragraph in the help already contained this info. Yes I saw that, but the original two paragraphs seem to contradict themselves. So a clarification seemed in order. ;-) Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Mistake in ApplicationName() documentation
2011/9/13, michael.vancann...@wisa.be : > > > On Tue, 13 Sep 2011, michael.vancann...@wisa.be wrote: > >> >> >> On Tue, 13 Sep 2011, Graeme Geldenhuys wrote: >> >>> Hi, >>> >>> Below is a quote from the documentation of the ApplicationName() >>> function: >>> >>> "Standard this is equal to the result of ParamStr(0), but it can be >>> customized by setting the OnGetApplicationName callback." >>> >> >> It should say 'filename part' of paramstr(0) >> >> I have adapted the docs. > > By the way, the second paragraph in the help already contained this info. > But I've been more explicit. > > Michael. > ___ > fpc-devel maillist - fpc-devel@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-devel > ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Mistake in ApplicationName() documentation
On Tue, 13 Sep 2011, michael.vancann...@wisa.be wrote: On Tue, 13 Sep 2011, Graeme Geldenhuys wrote: Hi, Below is a quote from the documentation of the ApplicationName() function: "Standard this is equal to the result of ParamStr(0), but it can be customized by setting the OnGetApplicationName callback." It should say 'filename part' of paramstr(0) I have adapted the docs. By the way, the second paragraph in the help already contained this info. But I've been more explicit. Michael. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Mistake in ApplicationName() documentation
On Tue, 13 Sep 2011, Graeme Geldenhuys wrote: Hi, Below is a quote from the documentation of the ApplicationName() function: "Standard this is equal to the result of ParamStr(0), but it can be customized by setting the OnGetApplicationName callback." It should say 'filename part' of paramstr(0) I have adapted the docs. Michael. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
[fpc-devel] Mistake in ApplicationName() documentation
Hi, Below is a quote from the documentation of the ApplicationName() function: "Standard this is equal to the result of ParamStr(0), but it can be customized by setting the OnGetApplicationName callback." This seems incorrect, as the following test program shows. --[ test1.pas ]-- program test1; {$mode objfpc}{$H+} uses Classes, Sysutils; begin writeln('ParamStr(0): <' + ParamStr(0) + '>'); writeln('ApplicationName: <' + ApplicationName + '>'); end. - Here is the console output of above program: $ mv test1 test1.elf64 $ ./test1.elf64 ParamStr(0): ApplicationName: ApplicationName() only returns the filename portion (without paths or extensions) of ParamStr(0). Am I miss interpreting the documentation, are is this an actual mistake in the docs. If the latter, then I'll create a documentation patch for ApplicationName(). Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel