Consultor Eletrônico



Kbase P41676: How to programmatically add LIST-ITEM-PAIRS to a COMBO-BOX?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/09/2003
Status: Unverified

GOAL:

How to programmatically add LIST-ITEM-PAIRS to a COMBO-BOX?

FIX:

Use the ADD-LAST method. For example for a character COMBO-BOX:

COMBO-BOX-1:ADD-LAST('Lable 2','Value 2').

Please note that the first parameter is always a character because it is the label. The second one (value) must be the same data type of the COMBO-BOX represents. So for an integer COMBO-BOX:

COMBO-BOX-1:ADD-LAST('Lable 2', 2).