Summary: | Private variables are not only available in the module in which they are defined. | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Nukool Chompuparn <nukool> |
Component: | BASIC | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | NEW --- | ||
Severity: | normal | CC: | himajin100000, ilmari.lauhakangas |
Priority: | medium | ||
Version: | 7.0.4.2 release | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
See Also: | https://bugs.documentfoundation.org/show_bug.cgi?id=134504 | ||
Whiteboard: | |||
Crash report or crash signature: | Regression By: | ||
Bug Depends on: | |||
Bug Blocks: | 107659 | ||
Attachments: | Example file with macros |
Description
Nukool Chompuparn
2021-01-02 17:17:52 UTC
Sorry for typo. Editted: Actual Results: Sub Show_var_LL2M5_2 varDimPrivateS = 0 varPrivateS = 0 varGlobalS = 0 varPublicS = 0 varDimPrivateL1 = 0 varPrivateL1 = 0 varGlobalL1 = 0 varPublicL1 = 0 Expected Results: varDimPrivateS = varPrivateS = varDimPrivateL1 = varPrivateL1 = Created attachment 176615 [details] Example file with macros Run Module5 from Library2 Reproduced with Arch Linux 64-bit Version: 7.4.0.0.alpha0+ / LibreOffice Community Build ID: d8a526eabe3a7256c1637307e8de74c54e5df4eb CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb) Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: threaded Built on 1 December 2021 Indeed, our help promises: Private VarName As TYPENAME The variable is only valid in this module. https://help.libreoffice.org/latest/en-US/text/sbasic/shared/01020300.html?DbPAR=BASIC#bm_id3149456 |