[Libreoffice-bugs] [Bug 134504] New: Editing Base Public and Private variables not working
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sat Jul 4 16:07:39 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=134504
Bug ID: 134504
Summary: Editing Base Public and Private variables not working
Product: LibreOffice
Version: 6.4.4.2 release
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: BASIC
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: tj_trevor.jones at yahoo.co.uk
Description:
No value can be assigned to a variable defined as public or private.
Steps to Reproduce:
1.Create a form with 2 Buttons
2.Define the following macros
OPTION EXPLICIT
Public VarI AS Integer
Private VarS AS String
Sub Button1
MsgBox VarI
MsgBox VarS
VarI = 1
VarS = "One"
End Sub
Sub Button2
MsgBox VarI
MsgBox VarS
VarI = 2
VarS = "Two"
End Sub
3. Assign Each macro to the execute action of the appropriate button
4. Run the form and click each button alternately.
Actual Results:
MsgBox for VarI always displays 0
MsgBox for VarS always displays blank.
Expected Results:
MsgBox for VarI should alternately display 1 then 2
MsgBox for VarS should alternately display "One" then "Two"
Reproducible: Always
User Profile Reset: No
Additional Info:
Version: 6.4.4.2
Build ID: 1:6.4.4~rc2-0ubuntu0.18.04.1
CPU threads: 3; OS: Linux 4.15; UI render: default; VCL: gtk3;
Locale: en-GB (en_GB.UTF-8); UI-Language: en-US
Calc: threaded
This release was supplied by The Document Foundation, Debian and Ubuntu.
Copyright © 2000–2020 LibreOffice contributors.
LibreOffice was based on OpenOffice.org.
--
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/20200704/17571c4f/attachment-0001.htm>
More information about the Libreoffice-bugs
mailing list