Skip to content

TSK (2)

Report Active Ghost Tasks

This string function returns a string of the currently active ghost tasks (ghost tasks that have been started).

TSK ( 2 [,ERR=line-ref|,ERC=error-code])
line-ref
is the program line number to branch to if an error is produced by this function.
error-code
is a programmer-defined error code. Valid values are positive or negative whole numbers.

This function is generally available starting with release level 7.4.

This function returns a 6-byte string for each active ghost task in the following format:

Byte(s)
Description
1 - 4
Unused ($00000000$)
5 - 6
Two-character ghost task name
LET T$ = TSK (2)

If T$ = $000000004730000000004732$, it prints as G0G2 indicating that ghost tasks G0 and G2 are active.

TSK (bank-num), TSK (0), and TSK (3) functions

From the Thoroughbred Basic Language Reference, Volume III: R–Z, version 8.9.1. Open this page in the PDF