<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 - Label field's property name mismatch in dialog editor and macro code"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=113797">113797</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Label field's property name mismatch in dialog editor and macro code
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>5.4.3.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>minor
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>UI
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jzombi@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Description:
I have a dialog with a Label field element.
The dialog editor lists a property named "Label" under the General tab for this
element.
If I set the "Label" property in the dialog editor, it works as expected (sets
the text of the label on the form).
If I try to set the "Label" property with a macro, it fails with an error.
The macro works as expected using the "Text" property instead of "Label"
property (see Additional Information), so it is likely just a naming/UI issue.
Steps to Reproduce:
1. Create a dialog with a "Label field" named "MyLabel"
2. Create a macro accessing its "Label" property
DialogLibraries.LoadLibrary("Standard")
dialog = CreateUnoDialog(DialogLibraries.Standard.MyDialog)
myLabel = dialog.GetControl("MyLabel")
myLabel.Label = "some text"
dialog.Execute
3. Run the macro
Actual Results:
Error message:
BASIC runtime error.
Property or method not found: Label.
Expected Results:
The dialog pops up with the label "some text"
Reproducible: Always
User Profile Reset: No
Additional Info:
The following macro code works:
myLabel.Text = "some text"
Help - About LibreOffice:
Version: 5.4.3.2
Build ID: 5.4.3-1
CPU threads: 6; OS: Linux 4.13; UI render: default; VCL: kde4;
Locale: hu-HU (hu_HU.UTF-8); Calc: group
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101
Firefox/56.0</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>