Initialize Combo Box

Bob Stox

New Member
How do you initialize a combo box for LIST-ITEM-PAIRS? The combo box will dynamically change as the user enters other information. I've tried to set the SCREEN-VALUE but I get an error, saying the value is invalid.
 
Off the top of my head are you setting the LIST-ITEMS attribute correctly?
Use the online Progress help to lookup LIST-ITEMS.
Regards
 

breakdown

New Member
To initialize the combo box, use the second item in the pair:

ASSIGN cb-test:LIST-ITEM-PAIRS = ",,Value of Test 1,Test1Val" +
",Value of Test 2,Test2Val"
cb-test:SCREEN-VALUE = "Test1Val".
/* This will display "Value of Test 1" in the combo box */
 
Top