Error error while testing the application after migrating from OE 11.7 to 12.8

Hi,
I am getting an error while testing the application after migrating from OE 11.7 to 12.8. In the combo-box property sheet, I have set an initial value for the combo-box as XXXX.
**Attribute SCREEN-VALUE for the COMBO-BOX COMBO-PRODSUBTYPE has an invalid value of XXXX (4058)
While debugging, I found that the ENABLE_UI display statement throws this error. Error says LIST-ITEMS attribute on combo-box is not set, or it doesn't have the value when we are trying to display with the initial value. My issue is with the same code; this error never appears in 11.7 while the screen loads. Similar kinds of errors related to the Como box appear across the application after the migration. Any clues, please share. Any client startup parameters missed? I have set -scrvalmode 1, but no use.

Thanks
-Philip-
 
In the past I have only known that error to appear when you specifically assign a screen value to a value that is not in the list items:

Code:
DEFINE VARIABLE COMBO-PRODSUBTYPE AS CHARACTER FORMAT "X(10)" INITIAL "XXXX" 
     LABEL "Combo 1" 
     VIEW-AS COMBO-BOX INNER-LINES 5
     DROP-DOWN-LIST
     SIZE 16 BY 1 NO-UNDO.     

DEFINE FRAME Y COMBO-PRODSUBTYPE SKIP.  

DISPLAY COMBO-PRODSUBTYPE WITH FRAME Y.
ENABLE ALL WITH FRAME Y.

// Commenting out this line will result in no error
COMBO-PRODSUBTYPE:SCREEN-VALUE = "XXXX".

WAIT-FOR "GO" OF THIS-PROCEDURE.

I have never used the scrvalmode start-up parameter and wonder if that is causing an issue under 12.8. If you do not use this parameter at all does the error go away?
 
Thank you. I found that if the combo box is inside a child frame, this error appears. Kindly see the attached .w program for reference. Thanks
 

Attachments

Back
Top