Using the ComboBox
Posted: Thu Jun 06, 2013 1:26 pm
I have been going round-round looking for code samples on how to use the LC ComboBox with little success. Any links to code sources and/or projects -- much appreciated.
I am now able to put my data selections into the ComboBox and click a choice which changes the label of the ComboBox. But, I would like to implement a script to filter the choices and ensure that the user only types a valid selection from the list OR add a new entry to the list.
Looking for help on:
1) How can I iterate (repeat) through the text list from top-bottom and bottom-top?
2) How can I remove an entry from the list? This is needed to filter the list.
3) How can I determine when the user leaves the ComboBox?
4) When the user leaves the ComboBox, I want to check to be sure the Label is in the list.
If not, I plan to ask the user if this is a "new" entry.
If YES, then how can I add an entry in sorted order to the list?
Thank you for any help.
bill
I am now able to put my data selections into the ComboBox and click a choice which changes the label of the ComboBox. But, I would like to implement a script to filter the choices and ensure that the user only types a valid selection from the list OR add a new entry to the list.
Looking for help on:
1) How can I iterate (repeat) through the text list from top-bottom and bottom-top?
2) How can I remove an entry from the list? This is needed to filter the list.
3) How can I determine when the user leaves the ComboBox?
4) When the user leaves the ComboBox, I want to check to be sure the Label is in the list.
If not, I plan to ask the user if this is a "new" entry.
If YES, then how can I add an entry in sorted order to the list?
Thank you for any help.
bill