<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:rb.henschel@t-online.de" title="Regina Henschel <rb.henschel@t-online.de>"> <span class="fn">Regina Henschel</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Empty parameter of type variant does no longer work in sub"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=132563">bug 132563</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Summary</td>
           <td>getByIndex of css.drawing.ShapeCollection does no longer work
           </td>
           <td>Empty parameter of type variant does no longer work in sub
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Empty parameter of type variant does no longer work in sub"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=132563#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Empty parameter of type variant does no longer work in sub"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=132563">bug 132563</a>
              from <span class="vcard"><a class="email" href="mailto:rb.henschel@t-online.de" title="Regina Henschel <rb.henschel@t-online.de>"> <span class="fn">Regina Henschel</span></a>
</span></b>
        <pre>(In reply to himajin100000 from <a href="show_bug.cgi?id=132563#c1">comment #1</a>)
<span class="quote">> 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.</span >

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).</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>