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.
Syntax
Section titled “Syntax”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.
Remarks
Section titled “Remarks”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.
Examples
Section titled “Examples”LET T$ = TSK (3)PRINT T$See also
Section titled “See also”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