ParamList.Add(n); // Add it to the parameter list.
Exec.RunProc(ParamList, Exec.GetProc('TEST'));
{ This will call the test proc that was exported before }
FreePIFVariantList(Exec.MemoryManager, ParamList); // Cleanup the parameters (This will also free N)
Exec.Free; // Free the executer.
end;
const
Script = 'procedure test(s: tstringarray); var i: Longint; begin for i := 0 to GetArrayLength(S) -1 do MyOwnFunction(''Test is called: ''+s[i]);end; begin end.';