Initializing help system before first use

executorinit

executorinit


Purpose
Initialize the given Executor with the details of the indicated component configured in executor_components, or in the same DMP solution.
Synopsis
procedure executorinit(executor:Executor)
procedure executorinit(executor:Executor, name:text)
Arguments
executor 
The Executor to initialize
name 
The component ID in the configuration JSON, or the component name when running within DMP.
Example
executorinit( myexecutor )
if myexecutor.status<>EXECUTOR_OK then
  writeln("Error returned by Executor: ",myexecutor.lasterror)
  exit(1)
end-if
Further information
1. After calling, check the value of executor.status for any errors.
2. When no component name is given, the first configured Xpress Executor component will be used.
3. When used from Xpress Insight running in DMP, this will initialize the Executor with the indicated Xpress Executor found within the solution containing the Insight component.
Related topics