[Libreoffice-bugs] [Bug 132563] Empty parameter of type variant does no longer work in sub

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat May 16 23:46:45 UTC 2020


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

Regina Henschel <rb.henschel at t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|getByIndex of               |Empty parameter of type
                   |css.drawing.ShapeCollection |variant does no longer work
                   |does no longer work         |in sub

--- Comment #4 from Regina Henschel <rb.henschel at t-online.de> ---
(In reply to himajin100000 from comment #1)
> the script does not work NOT BECAUSE getByIndex doesn't work BUT BECAUSE
> getSelectedShape_inWriter is called with nothing assigned to oShape(i.e.
> EMPTY) in examineShape_inWriterexamineShape_inWriter.

You are right. getByIndex is OK, but the parameter of sub is the problem.

So the problem is, that something was changed in parameter handling for sub.


REM  *****  BASIC  *****
option explicit

sub UserInput_bySub (aInput as variant)
aInput = InputBox("Enter something","Test of empty parameter as sub","write
here")
end sub

sub Echo_Input_bySub
dim oInput as variant: UserInput_bySub(oInput)
msgbox("You entered " & oInput)
end sub


That works in LibreOffice Version: 6.4.3.2 (x64), but does not work in Version:
7.0.0.0.alpha1+ (x64).

-- 
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/20200516/d58fd6bc/attachment.htm>


More information about the Libreoffice-bugs mailing list