The parameters of Basic functions are named; in the documentation, in many cases, parameter names are specified incorrectly. For example, for the Msgbox function, the documentation states that the function has parameters: MsgBox (Text As String [,Type As Integer [,Dialogtitle As String]]) In fact, the function has parameters with the same name as the similar Excel function. Basic script: Sub test Msgbox Prompt:="Prompt", Buttons:=MB_ICONSTOP, Title:="Documentation" End Sub In my opinion, it is necessary in the documentation to clarify the names of the parameters in this and similar cases.
The current Help page reflects the LibreOffice Basic implementation of the MsgBox instruction or function.
The parameter names of the LibreOffice Basic Msgbox function are described [url=https://opengrok.libreoffice.org/xref/core/basic/source/runtime/stdobj.cxx?r=fbaf865f#610]here[/url] (as far as I understand). arg(u"Prompt", SbxSTRING), arg(u"Buttons", SbxINTEGER, OPT_), arg(u"Title", SbxSTRING, OPT_), arg(u"Helpfile", SbxSTRING, OPT_), arg(u"Context", SbxINTEGER, OPT_),
(In reply to Vladimir Sokolinskiy from comment #2) > The parameter names of the LibreOffice Basic Msgbox function are described > [url=https://opengrok.libreoffice.org/xref/core/basic/source/runtime/stdobj. > cxx?r=fbaf865f#610]here[/url] (as far as I understand). > > arg(u"Prompt", SbxSTRING), > arg(u"Buttons", SbxINTEGER, OPT_), > arg(u"Title", SbxSTRING, OPT_), > arg(u"Helpfile", SbxSTRING, OPT_), > arg(u"Context", SbxINTEGER, OPT_), Correct !
As a minimum help pages should document the exact names for arguments that are actually implemented. As for MsgBox function implemented parameter names are: prompt, buttons and title.
Alain Romedenne committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/help/commit/a26e51cc4e5af7eae340fcf20e31e991239def2d tdf#141474 MsgBox function signature
Alain Romedenne committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/help/commit/f1c3329df60dd8e0d5fb495a1e2f12790eb7a829 tdf#141474 InputBox Basic method signature
Rafael Lima committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/help/commit/f9a2226309678e6a8769af6d312f796bb6835c4b tdf#131368, tdf#141474 Document WeekDay Basic function
Thank you very much, colleagues!
Alain Romedenne committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/help/commit/e5ac483bab252537ccbd087e6a133230cb8bae70 tdf#141474 tdf#124066 Basic keyword arguments explanations
Alain Romedenne committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/help/commit/b902fbcc87b0baf76b3dd501f0feff40bb1f3711 tdf#141474 Atn, Cos, Sin, Tan function signatures
Thanks again!
Alain Romedenne committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/help/commit/eb45e7df8aeeab7791876038c16345d5321e49b1 tdf#141474 Asc, AscW function signatures
Alain Romedenne committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/help/commit/3b63a6a4d3e61d57c552051037f69b8cdbac167b tdf#141474 CBool, CByte, CCur function signatures
Alain Romedenne committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/help/commit/2f76d8e9280cbe1e726cfcf2d4a798c8cf418241 tdf#145693 tdf#141474 Chr ChrW method signatures
Alain Romedenne committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/help/commit/401fb641aff217c7c333ce71d22abcf575d3ed09 tdf#114263 tdf#141474 tdf#147262 CallByName() function new help page
Alain Romedenne committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/help/commit/084d84f09882ec35007ad4566247932a30899799 tdf#141474 tdf#148466 Choose function accepts keyword arguments
Alain Romedenne committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/help/commit/f3b76b5e8d644176704c4619304278869ae57127 tdf#141474 Cdbl, Cint, Clng, Csng accept keyword arguments