Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-09

VirtualTreeView, Absoluteindex example on freepascal.org

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author
J?rgen Hestermann 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.freepascal.org/pipermail/lazarus/attachments/20130913/f6361e81/attachment.html>

Reply by email