What is the correct way to point to an item in TwwListBox?
I have a wwListBox with items:
'one'
'two'
'three'
I want to "find" the item and select it, but
MywwListBox.ItemIndex:=MywwListBox.Items.GetItemIndexByValue('two')
does not work and there is no IndexOf function inside Items
How am I supposed to select an item by it text (normal or stored)
Yes, I filled .Text, .StoredText and .TextDetail and still does not work
Thank you in advance!
-
wwListBox1.ItemIndex:=wwListBox1.Items.GetItemIndexByValue(wwEdit1.Text);
wwComboEdit1.ItemIndex:=wwListBox1.Items.GetItemIndexByValue(wwEdit1.Text);I have tested the upper code and IT WORKS, I get printer names from the TPrinter unit, I will see if the problem is with the text.
I am sorry and thank you for your support!
Please sign in to leave a comment.
Comments
3 comments