J?rgen Hestermann wroteI didn't look at the code, but usually index = -1 means that the item was not found. So maybe AbsoluteIndex's result should actually be signed? And how would it ever reach the value -1?
it starts off there? i regularly set the result value to -1 before running thru a routine... if there is success, the result value is set to a good value otherwise it retains its -1 value...
Obviously there is no code that sets it to this value, otherwise it would not compile with Cardinal type.
that is something else altogether ;)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130913/f6361e81/attachment.html>
