TaskName Example

 

The following example displays the name of the currently running task in a message box.

 

Sub Main

 MsgBox CurrentTask2.TaskName

End Sub

 

 

This example displays the original name of the running task, changes it to ôNew Task Nameö, and displays the new task name in a message box.

 

Sub Main

 ' Display the taskÆs current name

MsgBox CurrentTask2.TaskName

 

 ' Change it to something else

 CurrentTask2.TaskName = ôNew Task Nameö

 

 ' Now display the taskÆs name again

 MsgBox CurrentTask2.TaskName

End Sub