<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - BASIC: Replace's Start argument needs clarifying"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=132390">132390</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>BASIC: Replace's Start argument needs clarifying
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Documentation
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mikekaganski@hotmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>olivier.hallot@libreoffice.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Replace's Start argument is documented in help [1] as "Numeric expression that
indicates the character position within the string where the search shall
begin. The maximum allowed value is 65535."

But it's not only that; it is also the start of the substring to be returned.
This is how it's implemented, and also consistent with analogous VBA function
[2].

E.g., Replace("ABCDE", "C", "*", 2) will return "B*DE", starting from the
position 2. This needs to be documented in help.

[1] <a href="https://help.libreoffice.org/6.4/en-US/text/sbasic/shared/replace.html">https://help.libreoffice.org/6.4/en-US/text/sbasic/shared/replace.html</a>
[2]
<a href="https://docs.microsoft.com/en-us/office/vba/Language/Reference/User-Interface-Help/replace-function">https://docs.microsoft.com/en-us/office/vba/Language/Reference/User-Interface-Help/replace-function</a></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>