[Lazarus] About TComboBox.Items.IndexOfName

FreeMan freeman35 at delphiturkiye.com
Thu Oct 31 10:56:30 CET 2013


No any  non-ASCII characters,
'Admin', 'xxxxx' this to strings added in items
TmpStr:= 'Admin'
I := EDT_User.Items.IndexOfName(TmpStr);
or
I := EDT_User.Items.IndexOfName('Admin');
same result


31-10-2013 11:51 tarihinde, Sven Barth yazd─▒:
> Am 30.10.2013 22:41, schrieb FreeMan:
>> 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);
>>   EDT_User.ItemIndex:= I;
>>
>> 1-) I is always return -1;
> Does your combobox contain non-ASCII characters? How is TmpStr declared?
>
> Regards,
> Sven
>
> -- 
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>





More information about the Lazarus mailing list