<!DOCTYPE html><html><head>
<style type="text/css">body { font-family:'Times New Roman'; font-size:13px}</style>
</head>
<body><div>>Why not to implement a Find method for TListBox which allows partial search? Delphi missed it, but why Lazarus does the same?</div><div><br></div><div>I'd say that you cannot find something in TListBox which is visual object. You can search something in items it has, therefore you use "Items.Indexof". Then you only need to take care of how TStringList works and TListBox is unimportant. So it will be easier to deal with than if we had custom implementations of containters for all types of visual interfaces like TEdit, TMemo etc... Moreover if we will implement DeleteMany for example, we will only have to update TStringList, not TEdit/TMemo/TListbox.</div><div>Only argument against such thing is case where you have to use many characters to represent same thing. So we have "with" construction...</div><div><br></div><blockquote style="margin: 0 0 0.80ex; border-left: #0000FF 2px solid; padding-left: 1ex">
</blockquote><br><br><br></body></html>