[Lazarus] Problem with ComboBox

faber faber.cpu at gmail.com
Wed Sep 1 20:21:13 CEST 2010


2010/9/1 John vd Waeter <john at jvdw.nl>:
> It is a string, so decimal separator is not involved. I think setting the
> text  likely invokes textsearch, like when typing, and then the first
> occurance matching '11' is '11.2'.
>
> See what happens if you place '11' before '11.2'
>

;) nice

result of that code in ComboBox is '112'

 ComboBox1.ReadOnly:=true;
 ComboBox1.Items.Add('112');
 ComboBox1.Items.Add('11');
 ComboBox1.Items.Add('92');
 ComboBox1.Text:='11';


best regards
faber




More information about the Lazarus mailing list