[Libreoffice-bugs] [Bug 132390] New: BASIC: Replace's Start argument needs clarifying

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Apr 24 22:08:11 UTC 2020


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

            Bug ID: 132390
           Summary: BASIC: Replace's Start argument needs clarifying
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Documentation
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: mikekaganski at hotmail.com
                CC: olivier.hallot at libreoffice.org

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] https://help.libreoffice.org/6.4/en-US/text/sbasic/shared/replace.html
[2]
https://docs.microsoft.com/en-us/office/vba/Language/Reference/User-Interface-Help/replace-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/20200424/54187d7a/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list