Kbase P19537: Using the ADD-FIRST or ADD-LAST method for a COMBO-BOX defin
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  1/25/2011 |
|
Status: Unverified
SYMPTOM(s):
Using the ADD-FIRST or ADD-LAST method for a COMBO-BOX defined as character results in two or more values being added.
Character value passed contains commas.
CAUSE:
Since the default delimiter for a Combo-box's list-items is a comma, ADD-LAST method treats the passed string as a delimiter-separated list, and adds multiple items.
FIX:
Set a delimiter other than a comma (",") for the Combo-box when it's created or initialized with ASSIGN <combo>:DELIMITER = <value>, before populating the list-items.
If for some reason you need to modify the list-items directly instead of using the ADD-FIRST/ADD-LAST methods, remember to use the correct delimiter by referencing the <combo>:DELIMITER attribute.