combobox how to ...

Posted by goo on 31-May-2018 10:20

11.7

I got a cbTest with:

  cbTest:list-item-pairs = 'aaa,1,bbb,2,ccc,3'. 

cbTest:screen-value gives me 2, but is it so that I have to do like this to get the textpart?

 entry(SELF:LOOKUP(SELF:SCREEN-VALUE) - 1,self:list-item-pairs) ? 

hmmmm...

Posted by Matt Gilarde on 31-May-2018 10:32

Yes, that's what you have to do. There's no attribute which gives you the label of the selected item directly.

All Replies

Posted by Matt Gilarde on 31-May-2018 10:32

Yes, that's what you have to do. There's no attribute which gives you the label of the selected item directly.

Posted by goo on 31-May-2018 10:42

Never had to use it, but now... should have been possible to get it easier.. but thanks :-)

Posted by OctavioOlguin on 01-Jun-2018 16:37

(I've used that several times, from 15-20 years ago) ... :(

This thread is closed