<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - The variables type Variant works by division wrong"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=124605#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - The variables type Variant works by division wrong"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=124605">bug 124605</a>
from <span class="vcard"><a class="email" href="mailto:erack@redhat.com" title="Eike Rathke <erack@redhat.com>"> <span class="fn">Eike Rathke</span></a>
</span></b>
<pre>Isn't that rather a BASIC error if an expression X/100 results in 100 if X is
Empty? i.e. ignores the Variant *and* the following operator (same with X-100,
for example, the result is 100).
The same behaviour with
Dim X
Sub Main
print X/100
End Sub
(where Dim X is a so far empty Variant) so how's that supposed to be defined?
FWIW, it can be checked with
Function foo( X )
If IsEmpty(X) Then
X = 0
End If
foo = X / 100
End Function
Or should we only put Empty if it was a cell range argument, but not for single
cells? What does Excel do?</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>