https://bugs.documentfoundation.org/show_bug.cgi?id=161313
Mike Kaganski <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |NOTABUG --- Comment #2 from Mike Kaganski <[email protected]> --- You have a code that expects an argument named "iintmsg", and uses that argument to construct the value passed to MsgBox. Indeed, the argument must be defined, to be used. When you call this function directly, no one has passed a value of "iintmsg" to it, which is rightfully shown to you. You have several options. 1. Use IsMissing [1] to check if the argument was defined, before use of the argument, and either don't use it if it's missing, or define a default value: If IsMissing(iintmsg) Then iintmsg = Empty 2. Use Option Compatible [2], and then define a default value for the argument [3]: Public Sub fmsgboxoK(Optional iintmsg As Variant = "") (note that you can't use Empty as a default value here, which is a bug). [1] https://help.libreoffice.org/latest/en-US/text/sbasic/shared/03104000.html?DbPAR=BASIC [2] https://help.libreoffice.org/latest/en-US/text/sbasic/shared/compatible.html [3] https://help.libreoffice.org/latest/en-US/text/sbasic/shared/03090409.html?DbPAR=BASIC#argument -- You are receiving this mail because: You are the assignee for the bug.
