sonar-openedge icon indicating copy to clipboard operation
sonar-openedge copied to clipboard

Variable is read but never assigned ADD-FIRST / ADD-LAST methods

Open stefandrissen opened this issue 5 years ago • 0 comments

DEFINE VARIABLE cfoo AS CHARACTER NO-UNDO
   VIEW-AS SELECTION-LIST INNER-LINES 5 INNER-CHARS 60.

DEFINE FRAME fr
   cfoo
   .

ENABLE ALL WITH FRAME fr.

cfoo:ADD-FIRST( "foo":u ).
cfoo:ADD-LAST( "bar":u ).

DO ON ENDKEY UNDO, LEAVE:
   WAIT-FOR CLOSE OF THIS-PROCEDURE.
END.

MESSAGE cfoo:SCREEN-VALUE VIEW-AS ALERT-BOX.

stefandrissen avatar Sep 24 '19 20:09 stefandrissen