title: After closing form, go back to main form and transfer parameters
body: <p>I have this code here I use to open form in Delphi</p>
  
  <pre><code>procedure TEventForm.OpenEv;
  var
    Form: TOpenEvForm;
  begin
        Form.CreateForm;
        Form.ShowModal;
        Form.Release
    end
  end;
  </code></pre>
  
  <p>When I open the <code>TOpenEvForm</code> form, it contains a bit of text, a datepicker and an 'Ok' button. What I need to do is when clicked the Ok button to call the <code>EventAdd</code> procedure in the first form and to pass the datepicker as a variable.</p>
  
  <p>I could call the <code>EventAdd</code> procedure from the second form, but it's not clean.
  Or is there any way to close the form <code>TOpenEvForm</code> but run the <code>EventAdd</code> procedure?</p>