[Lazarus] About TComboBox.Items.IndexOfName

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Oct 31 07:04:39 CET 2013


On Wed, 30 Oct 2013 23:41:16 +0200
FreeMan <freeman35 at delphiturkiye.com> wrote:

> Hello,
> I'm not sure is this bug? can some one test please? and if its but I'll 
> make new issue.
> I have a TComboBox, I add 2 strings. I wanna do, if TmpStr is in the 
> items, do it selected.
> 
>    I := EDT_User.Items.IndexOfName(TmpStr);

When you press F1 for help you get:

http://lazarus-ccr.sourceforge.net/docs/rtl/classes/tstrings.indexofname.html

Mattias




More information about the Lazarus mailing list