[Libreoffice-bugs] [Bug 126913] Wrong behavior of Basic "mid" statement

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Aug 14 12:48:42 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=126913

Oliver Brinzing <oliver.brinzing at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|6.2.5.2 release             |Inherited From OOo
                 CC|                            |oliver.brinzing at gmx.de

--- Comment #3 from Oliver Brinzing <oliver.brinzing at gmx.de> ---
IMHO this is not a bug, to make mid() vba compatible, use 

Option VBASupport 1

Sub Main
    msgbox my_function()
End Sub

function my_function () as string
   dim my_string as string
   let my_string = "abc def jhi"
   mid( my_string, 5 ) = "123"
   let my_function = my_string
end function

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190814/37dc0b85/attachment.html>


More information about the Libreoffice-bugs mailing list