Tasks

 

Remarks Properties Methods Samples

ED
avaliable
RT
avaliable

Remarks:Top

This object contains a collection of tasks, tasks can be defined with the 'Process Control Engine' (PCE).
A task is a VisualBasicScript file and can be executed over the Tasks/Task object model.

Here is a sample how to configure a task to run only once and starts event triggered:


Tasks can also be configured cyclic, then VBA is not needed to use them...

Properties:Top

Count Parent  

Methods:Top

Item    

Samples:Top

Public Sub StartTask()
	Dim zTask As Task
	
	'get task by its name...
	Set zTask = thisProject.Tasks.Item("Task1")

	'get task properties...
	Debug.Print "CountVariable:   " & zTask.CountVariable
	Debug.Print "ActualCycleTime: " & zTask.ActualCycleTime
	Debug.Print "CycleTime:	 " & zTask.CycleTime
	Debug.Print "ErrorNumber:	 " & zTask.ErrorNumber
	Debug.Print "ErrorString:	 " & zTask.ErrorString
	Debug.Print "Priority:		" & zTask.Priority
	Debug.Print "Status:		" & zTask.Status

	'run task
	zTask.Run

End Sub