RobotStudio event

How to set ActiveTask?

Options
If the station has multiple tasks. "T_ROB1", "T_ROB2".
How can I set/change the ActiveTask.

_currentStation = Project.ActiveProject as Station;
_currentStation.ActiveTask = ?

I can able to find the tasks by
ProjectObject[] projobjs = _currentStation.GetAllObjects();
projobj.TypeDisplayName == "Task"

How can I set other task ["T_ROB2"] as my ActiveTask.?
Lingaa
Tagged: