4
votes
Vote UpVote

TStringList updating pitfalls

TURBU Tech – What’s wrong with this code? procedure TMyCustomChecklistPopupControl.ClosePopup; var   i: integer; begin   inherited ClosePopup;   FInternalItemStringList.Clear;   for i := 0 to Self.CheckedCount - 1 do     FInternalItemStringList.Add(Self.CheckedItems[i].Name); end; At first glance, it looks just fine. It’s semantically correct–it will do what you want it to. If you happen to have seen a certain issue before, something might jump out at you, but if not, you probably think this is OK. And most of the time, it is. This is a ...
Favorite? Off-Topic? Mason Wheeler @ 2010-10-19 07:55

Statistics

Visits: 781
Votes: 4
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Barton_Stano
Charles Ardour
François
stukelly
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)