Click or drag to resize

ProcessSourceTablesScriptExecute(DataTable, IReadOnlyListDictionaryString, DataTable, IProgressReporter, Boolean) Method

Executes the script. If no instance of the script object exists, the script is compiled. If thereafter no script object exists, a error message will be stored and the return value is false. If the script object exists, the Execute function of this script object is called.

Namespace: Altaxo.Scripting
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public bool Execute(
	DataTable myTable,
	IReadOnlyListDictionary<string, DataTable> sourceTables,
	IProgressReporter reporter,
	bool catchExceptionsAndStoreThemInThisScript
)

Parameters

myTable  DataTable
The data table this script is working on.
sourceTables  IReadOnlyListDictionaryString, DataTable
The source tables that will be processed by this script.
reporter  IProgressReporter
Progress reporter that can be used by the script to report the progress of its work.
catchExceptionsAndStoreThemInThisScript  Boolean
If true, exceptions during the script execution are catched and stored here for further investigation by the user. If you call this script from another script, you should set this parameter to false in order to see the execution errors in your script.

Return Value

Boolean
True if executed without exceptions, otherwise false.
Remarks
If exceptions were thrown during execution, the exception messages are stored inside the column script and can be recalled by the Errors property.
See Also