May DWS calling functions from sample unit?
<p>May DWS calling functions from sample unit? For example:</p>

<pre><code>FExecution.Info.Func['Test.ClickProc'].Call(AParams); (This is not working)
</code></pre>

<p>FExecution - IdwsProgramExecution;</p>

<p>Function declared in Script code:</p>

<pre><code>unit Test;
Uses UTestUnit;
procedure TestFunc(LParam: string);
begin
  ShowMessage(LParam);
end;
procedure ClickProc(Sender: TObject);
begin
  ShowMessage('DWS');
end;
var  S: TStringList;
var  btn: TButton;
begin
  btn := TButton.Create(MainForm);
  btn.OnClick := ClickProc;
  btn.Parent(MainForm);
end.
</code></pre>

<p>ClickProc in this example.</p>