<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Editing Base Public and Private variables not working"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=134504">134504</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Editing Base Public and Private variables not working
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.4.4.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>BASIC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tj_trevor.jones@yahoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>