[Lazarus] VirtualTreeView, Absoluteindex example on freepascal.org

wkitty42 at windstream.net wkitty42 at windstream.net
Fri Sep 13 06:25:22 CEST 2013


On Thursday, September 12, 2013 11:36 AM, Jürgen Hestermann <juergen.hestermann at gmx.de> wrote: 
>I 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-ide.org/pipermail/lazarus/attachments/20130913/f6361e81/attachment-0003.html>


More information about the Lazarus mailing list