Consultor Eletrônico



Kbase P29106: The ADD-LAST() method fails with elements containing commas.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   02/07/2003
Status: Unverified

SYMPTOM(s):

The ADD-LAST() method appears not to work as expected with LIST-ITEM-PAIRS COMBO-BOX widget.

Executing the statement
Combo-Box-1:ADD-LAST('James, Jr' , 'Smith') NO-ERROR.
does not append the pair to the LIST-ITEM-PAIRS of the COMBO-BOX.

CAUSE:

The comma ',' character is the default LIST-ITEM-PAIRS DELIMITER. Hence it can not be contained in a character list element unless the DELIMITER is changed to some other character.

FIX:

Change the COMBO-BOX DELIMITER attribute to some other character:

Combo-Box-1:DELIMITER = CHR(2).
Combo-Box-1:ADD-LAST('James, Jr' , 'Smith') NO-ERROR.