[Lazarus] About the "Trim Spaces Style" modes. Which one should be the default mode?

Sayyid Ibnu Husein Al-'Aththÿffffffffffffffffe2s ibnuhusein2000 at yahoo.com
Thu Mar 26 17:29:45 CET 2009


On Thu, Mar 26, 2009 at 2:21 PM, Marco van de Voort <marcov at stack.nl> wrote:
>> var
>>   i: integer; item: TItem;
>> ...
>> for i := 0 to obj.ItemCount do begin
>>   item := Items[i];
>>   ... item ... item ...
>> end;
>
> Minus one btw.


And my iterator case is proven. :-)  Like I said earlier - one of the
reasons I implemented iterators for all list/container classes I use.
No need to remember -1 in the if... line or the 0-based vs 1-based
etc...

Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/




More information about the Lazarus mailing list