I am trying to pass a parameters from a Windows Form program to a regular program. For example. I have a TestForm.cbl which pertains to a form and looks roughly as follows in the solution explorer:
This form is invoked by a regular program (program named is tps000.cbl) as follows:
set TestForm to new TPSSTART.TestForm()
invoke type System.Windows.Forms.Application::EnableVisualStyles()
After the form is displayed, I want to be able to return a parameter or parameters back to tps000.cbl after the user has clicked on event/object on the form. For example, in the TestForm.cbl I have the following code:
method-id TestForm_FormClosing final private.
procedure division using by value sender as object e as type System.Windows.Forms.FormClosingEventArgs.
IF ENTER-FLAG = 0
goback returning ENTER-FLAG
The above code of returning an enter flag obviously does not work because that is not the way to pass parameters. I want to know how to pass parameters between form programs and non-form programs.