need help

tony vela

New Member
Can someone give me a helpfull tip... In a combo-box with several Items with the same name, can I filter the combo-box in such a way that I have only on item of each kind.
Example: I have this... DELL I want this... DELL
DELL HP
HP
HP
Can someone help me?
 
Are you using LIST-ITEM-PAIRS?

Is it duplicate codes that you want to avoid or duplicate displayed values?

Whichever method, you should be able to find a solution using either the LOOKUP attribute of the combo box, or the LOOKUP function on the combo's LIST-ITEMS or LIST-ITEM-PAIRS attribute.

You would have to build this into your combo box load.

e.g.
FOR EACH Table:
IF cbox:LOOKUP(Table.Field) EQ 0
THEN cbox:ADD-LAST(Table.Field).
END.
 
We use the PRIVATE-DATA for this kind of situations. You can store a comma separated string in it, each entry is referring to an element of the Combo Box but the entry itself can be different.

Regards, Istvan
 
Top