saravanakumar
Member
Hi Everybody,
When i try using the variable subscript for array instead of using constant subscript Progress 4GL throws the below error;
1) I guess the message from Progress says this has not been implemented for any widget except FILL-IN. I have tried for FILL-IN as well, i get the same error. I might be wrong in the way of usage. Correct me if i am wrong. Please provide me with an example if solved.
2) Is there an alternative method to achieve the goal?
Can someone help me out in this regard? Thanks in advance.
When i try using the variable subscript for array instead of using constant subscript Progress 4GL throws the below error;
Code Snippet:
DEFINE VARIABLE a AS INTEGER EXTENT 3 /* VIEW-AS FILL-IN */ NO-UNDO.
DEFINE FRAME f
a[1] NO-LABEL
a[2] NO-LABEL
a[3] NO-LABEL.
ON 'ENTRY':U OF a[2] IN FRAME f
DO:
MESSAGE SELF:INDEX
VIEW-AS ALERT-BOX INFO BUTTONS OK.
APPLY "TAB":U TO a[SELF:INDEX] IN FRAME f.
END.
ENABLE ALL WITH FRAME f.
WAIT-FOR CLOSE OF CURRENT-WINDOW.
Error:
Widget array-element requires constant subscript. (3565)
** Could not understand line 13. (196)
Explanation i got from help:
Widget array-element requires constant subscript. (3565)
Expression subscripts require on-the-fly mapping of the subscripted entity at run-time to a widget. That is only implemented for fill-ins when they are being used directly in a frame. It is not implemented for any widget at all within a widget:attribute phrase.
1) I guess the message from Progress says this has not been implemented for any widget except FILL-IN. I have tried for FILL-IN as well, i get the same error. I might be wrong in the way of usage. Correct me if i am wrong. Please provide me with an example if solved.
2) Is there an alternative method to achieve the goal?
Can someone help me out in this regard? Thanks in advance.