Get the text lable of a listbox in Control IP5
in
Contributed Library Questions
•
5 months ago
Hi this is a noob question
I am trying to read a label from a list box with the following items in the list:
10.0.0.200
10.0.0.201
10.0.0.202
10.0.0.203
How can I access the label itself like '10.0.0.200' and not the index or its other properties?
The function for the control event from the examples is as below:
- void controlEvent(ControlEvent theEvent) {
- if(theEvent.isGroup() && theEvent.name().equals("myList")){
- int test = (int)theEvent.group().value();
- println("test "+test);
- // read the label string here
- }
- }
1