https://bugs.documentfoundation.org/show_bug.cgi?id=154595
Bug ID: 154595
Summary: On Local Error help is misleading
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]
On Error help article explains the optional 'Local' keyword [1]:
> Local: "On error" is global in scope, and remains active until canceled by
> another "On error" statement. "On Local error" is local to the routine which
? invokes it. Local error handling overrides any previous global setting. When
> the invoking routine exits, the local error handling is canceled
> automatically,
> and any previous global setting is restored.
But this explanation is simply wrong. The code just ignores the keyword [2],
and so there's no difference when it's used or not. The effects of On Error are
always local to the function where it's used.
Have been documented that way since
https://git.libreoffice.org/help/+/fb403a47daba6f4a3e9540a3bce180ec1970b0d4%5E%21/
(2010).
[1]
https://help.libreoffice.org/latest/en-US/text/sbasic/shared/03050500.html?DbPAR=BASIC
[2]
https://opengrok.libreoffice.org/xref/core/basic/source/comp/loops.cxx?r=8ad514c6#469
--
You are receiving this mail because:
You are the assignee for the bug.