Consultor Eletrônico



Kbase P19831: ADM2. Combo-box returns error 76 and 4057
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   14/03/2003
Status: Unverified

FACT(s) (Environment):

Progress 9.1D

SYMPTOM(s):

ADM2. Combo-box returns error 76 and 4057

** Invalid character in numeric input <character>. (76)

**Attribute <attribute> for the <widget id> has an invalid value of <integer>. (4057)

FIX:

Erroneous definition of a COMBO-BOX like this:
DEFINE VARIABLE cmbMitarbeiter AS CHARACTER FORMAT "X(256)":U initial "0"
    VIEW-AS COMBO-BOX SORT INNER-LINES 5
    DROP-DOWN-LIST
    SIZE 42.6 BY 1 NO-UNDO.
It was not defined as a COMBO-BOX with LIST-ITEM-PAIRS, but in the code I found
the following statements:
myCombo:LIST-ITEM-PAIRS = ?.
myCombo:ADD-LAST(customer.name, string(customer.cust-num))
The Programm worked fine, but after I finished the program I wasn't able to start
other programs that defined any combo-boxes.
I Changed the definition to:
DEFINE VARIABLE cmbMitarbeiter AS CHARACTER FORMAT "X(256)":U
    VIEW-AS COMBO-BOX SORT INNER-LINES 5
    LIST-ITEM-PAIRS "Item 1"," Item1"   <<<<---------- Changes
    DROP-DOWN-LIST
    SIZE 42.6 BY 1 NO-UNDO.
And the code to:
Do while mycombo:num-items > 0:
  Mycombo:delete(1).
End.