<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Dec 8, 2017 at 10:57 AM, Alexey via Lazarus <span dir="ltr"><<a href="mailto:lazarus@lists.lazarus-ide.org" target="_blank">lazarus@lists.lazarus-ide.org</a>></span> wrote:<br><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF"><table class="m_-522370414905144799diff-table m_-522370414905144799tab-size">
<tbody>
<tr>
<td class="m_-522370414905144799blob-code m_-522370414905144799blob-code-deletion"><span class="m_-522370414905144799blob-code-inner">- FIncrement := AIncrement;</span>
</td>
</tr>
<tr>
</tr>
</tbody>
</table>
<table class="m_-522370414905144799diff-table m_-522370414905144799tab-size">
<tbody>
<tr>
<td class="m_-522370414905144799blob-code m_-522370414905144799blob-code-addition"> <span class="m_-522370414905144799blob-code-inner">+ <span class="m_-522370414905144799pl-k">if</span>
AIncrement > <span class="m_-522370414905144799pl-c1">0</span> <span class="m_-522370414905144799pl-k">then</span></span> </td>
</tr>
<tr>
</tr>
</tbody>
</table>
<table class="m_-522370414905144799diff-table m_-522370414905144799tab-size">
<tbody>
<tr>
<td class="m_-522370414905144799blob-code m_-522370414905144799blob-code-addition"> <span class="m_-522370414905144799blob-code-inner">+ FIncrement := AIncrement</span>
</td>
</tr>
<tr>
</tr>
</tbody>
</table>
<table class="m_-522370414905144799diff-table m_-522370414905144799tab-size">
<tbody>
<tr>
<td class="m_-522370414905144799blob-code m_-522370414905144799blob-code-addition"> <span class="m_-522370414905144799blob-code-inner">+ <span class="m_-522370414905144799pl-k">else</span></span>
</td>
</tr>
<tr>
</tr>
</tbody>
</table>
<table class="m_-522370414905144799diff-table m_-522370414905144799tab-size">
<tbody>
<tr>
<td class="m_-522370414905144799blob-code m_-522370414905144799blob-code-addition"> <span class="m_-522370414905144799blob-code-inner">+ FIncrement := -AIncrement;</span>
</td>
</tr>
<tr>
</tr>
</tbody>
</table>
<br>
<span class="m_-522370414905144799blob-code-inner">better: FIncrement := Abs(AIncrement);<span class="HOEnZb"><font color="#888888"><br></font></span></span></div></blockquote><div><br></div><div><br></div><div>I believe you are referring to T(Float)SpinEditEx?</div><div>This code is in the generic part, and Abs(AIncrement) does not compile there, at least not with 3.0.4RC1.</div><div>Therefore this workaround.</div><div><br></div><div>Bart<br></div></div><br></div></div>