Skip to content

TSK (3)

List Active Terminal IDs

This string function returns a sorted list of terminal IDs currently in use by Basic, TS Network DataServer and TS ODBC DataServer.

TSK ( 3 [,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 8.4.2.

This function returns a sorted string array that contains a 4-byte string for each active terminal ID. A terminal ID fewer than four characters long will be padded with trailing blank characters.

In some cases, Thoroughbred Basic documentation refers to terminal IDs as task IDs or task names.

LET T$ = TSK (3)
PRINT T$

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

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