You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2022/08/11 16:12:04 UTC

[Issue 105060] bogus/wrong error message caused by missing space in BASIC macro statement

https://bz.apache.org/ooo/show_bug.cgi?id=105060

Czesław Wolański <cz...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |czeslaw.wolanski@gmail.com
             Latest|---                         |4.1.13
    Confirmation in|                            |

--- Comment #4 from Czesław Wolański <cz...@gmail.com> ---
(In reply to oodenis from comment #0)
> 
> If you add spaces around the GivenWord variable like this:
> givenWord= "hello"
> MsgBox("Found """& givenWord &"""")
> 
> You get the intended result.
Trailing & may indicate the variable type Long integer.

To get the intended result a space is needed 
only _after_ the GivenWord variable i.e.

MsgBox("Found """&givenWord &"""")



Other workarounds:

MsgBox("Found """&(givenWord)&"""")

MsgBox("Found """&givenWord+"""")

-- 
You are receiving this mail because:
You are on the CC list for the issue.
You are the assignee for the issue.