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

            Bug ID: 170754
           Summary: Examples for SUB command in Help
           Product: LibreOffice
           Version: 6.4.7.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Documentation
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Description:
Help in topic "LibreLogo" on the SUB command [1] gives the following examples:

PRINT SUB (“t”, “T”, “text”) ; print “Text”, replacing “t” with “T”
PRINT SUB (“(.)”, “\\1\\1”, “text”) ; print “tteexxtt”, doubling every
characters

Both programs worked as expected in e.g. LibreOffice 6.0.1.1

As of 6.4.7.2 (or earlier?) they result in the error "Error (in Line 1)"


Using a variable allows you to get the correct result:

a = SUB (“t”, “T”, “text”)
PRINT a

b = SUB (“(.)”, “\\1\\1”, “text”)
PRINT b


[1]
https://help.libreoffice.org/latest/en-US/text/swriter/librelogo/LibreLogo.html?DbPAR=WRITER#hd_2580

Actual Results:


Expected Results:



Reproducible: Always


User Profile Reset: No

Additional Info:

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to