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: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to