<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 - LO BASE numeric properties converted to locale format inside macro"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=144038">144038</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LO BASE numeric properties converted to locale format inside macro
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>7.1.5.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>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>rich.libre@demattio.co.at
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="https://bugs.documentfoundation.org/attachment.cgi?id=174499" name="attach_174499" title="Database with a macro example">attachment 174499</a> <a href="https://bugs.documentfoundation.org/attachment.cgi?id=174499&action=edit" title="Database with a macro example">[details]</a></span>
Database with a macro example
Version: 7.1.5.2 / LibreOffice Community
Build ID: 85f04e9f809797b8199d13c421bd8a2b025d52b5
CPU threads: 4; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: de-AT (en_US.UTF-8); UI: en-US
Calc: threaded
==================================================================
Have a look at my locale settings above.
No matter, if I use a constant with decimal POINTS or a numeric property of an
object, that numeric values are converted - in my case to German format with
decimal COMMA.
The problem in this case is: I use that kind of values in a SQL statement
inside the macro, which leads to misinterpretation. (see my attached Database
with macro in it.
==================================================================
WORKAROUND: using the "replace" function to replace comma by point.
BUT: I have to handle every possible locale setting
==================================================================
SUGGESTION: Inside a macro the format of numbers should always convert to
internal native format by default. For converting to locale format there should
be a conversion function.
Have a look at the macro in the attachment</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>