<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:olivier.hallot@libreoffice.org" title="Olivier Hallot <olivier.hallot@libreoffice.org>"> <span class="fn">Olivier Hallot</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Format Basic function needs better description of its 'format' argument"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=143183">bug 143183</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>UNCONFIRMED
</td>
<td>NEW
</td>
</tr>
<tr>
<td style="text-align:right;">Blocks</td>
<td>
</td>
<td>80430
</td>
</tr>
<tr>
<td style="text-align:right;">Ever confirmed</td>
<td>
</td>
<td>1
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Format Basic function needs better description of its 'format' argument"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=143183#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Format Basic function needs better description of its 'format' argument"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=143183">bug 143183</a>
from <span class="vcard"><a class="email" href="mailto:olivier.hallot@libreoffice.org" title="Olivier Hallot <olivier.hallot@libreoffice.org>"> <span class="fn">Olivier Hallot</span></a>
</span></b>
<pre>The printfmtstr extra codes for strings may return unexpected values if not
carefully coded in Basic
msgbox Format("FooBar", "!!abc") '=> "F" (everything after initial "1" is
discarded)
msgbox Format("123.456", "!") '=> return !
msgbox Format("123.456", "!!abc") '=> return !!abc
msgbox Format("123.abc456", "!!abc") '=> return 1
So, if the string contents is a valid number, the '!' format string return the
format string itself.
otherwise, return the first character of the input string.
Also the "&" format code seems to return the format string itself.
msgbox Format("ADCDEFGHIJKLMNOPQRSTUVWXYZ1234567890", "&abc")
msgbox Format(123.456, "&abc")
msgbox Format("123.456", "&abc")
all return &abc.</pre>
</div>
</p>
<div id="referenced">
<hr style="border: 1px dashed #969696">
<b>Referenced Bugs:</b>
<ul>
<li>
[<a class="bz_bug_link
bz_status_NEW "
title="NEW - [META] Documentation gap for new features"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=80430">Bug 80430</a>] [META] Documentation gap for new features
</li>
</ul>
</div>
<br>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>