[Migrated content. Thread originally posted on 02 March 2005]
I have a grid control with row and column headings. This program is called as a look up from another program with the intent of passing data selected back to the calling program. Using the Msg-Heading-Clicked event I determine, using event-data-2. that a row heading has been clicked. I use the row number in event-data-2 and a constant column number to inquire from CELL-DATA the data to pass back and want to exit the called program at that point by performing the standard bench generated exit routine:Acu-Exit-Rtn.
PERFORM After-Program
EXIT PROGRAM
STOP RUN
?After-Program? closes the files and destroys the screen. However, the runtime ignores the ?EXIT PROGRAM? statement and executes the ?STOP RUN? statement which, of course, shuts down the runtime.
The question is how can I achieve an ?EXIT PROGRAM? after having clicked a row header without having to click some other button?
This is an attempted work around of the fact that grid controls to not have a CMD-DBLCLICK type exception like a list box control. We do not want to modify any generated code files i.e ".evt" and ".prd" outside of the event editor.
Regards
Vins Nash