Consultor Eletrônico



Kbase P69937: Can I sort a Bombo-box list at runtime ?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   02/03/2004
Status: Unverified

GOAL:

Can I sort a Bombo-box list at runtime ?

FACT(s) (Environment):

Progress 9.1x

FIX:

The is no direct method for a COMBO-BOX to sort the items dinamically.
However you can take the LIST-ITEMS value and sort the entries using your own
sorting algorithm.
Example:
DEF VAR cList AS CHARACTER.
DEF VAR cSortedList AS CHARACTER.
cList = COMBO-BOX-1:LIST-ITEMS.
RUN SortList.p ( INPUT cList, OUTPUT cSortedList ).
ASSIGN COMBO-BOX-1:LIST-ITEMS = cSortedList .

where SortList.p contains the logic to sort a comma separeted list of strings.
into desired order.