Open task instance

Command group Flag affected Reversible Execute on client Platform(s)
Tasks NO NO NO All

Syntax

Open task instance class-name[/instance-name] [(parameters)]

Description

This command opens the specified task and assigns an instance name. You can include a list of parameters which are sent to the $construct() method in the task instance. Note that startup task instance is normally opened when the library opens: its name will be either the library name or the library internal name if it has one.

Example

Open task instance tkMyTask (1)
# or do it like this
Do $tasks.tkMyTask.$open('*',1) ## * is the default instance name
# Then in the $construct of tkMyTask
If pOpenWindow ## pOpenWindow is a boolean parameter variable
  Open window instance wMyWindow
End If