On a PC

Previous chapterNext chapter Show allShow all    Hide allHide all

A task can also be started event triggered. In this case the Start type has to be set to Event driven . Now the task is no longer automatically started with the Runtime.

A VBA macro has to be created in order to execute a task by pressing a button, by a limit violation or any other event. With the following VBA statement the task can be started:

thisProject.Tasks.Item("Taskname").Run

The task is automatically started in an own thread if in the configuration Priority Main process has not been set.

With the following VBA statement the task can be stopped at any time:

thisProject.Tasks.Item("Taskname").Stop