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 哲ew Task Name, and displays the new task name in a message box.

 

Sub Main

 ' Display the task痴 current name

MsgBox CurrentTask2.TaskName

 

 ' Change it to something else

 CurrentTask2.TaskName = 哲ew Task Name

 

 ' Now display the task痴 name again

 MsgBox CurrentTask2.TaskName

End Sub